don't call dlerror in fribidi shim

This commit is contained in:
Ondrej Baranovič 2022-03-31 02:13:05 +02:00 committed by GitHub
parent 36df718b44
commit 237f6a2662
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,6 @@
#endif
#define FRIBIDI_SHIM_IMPLEMENTATION
#include "fribidi.h"
@ -86,7 +85,7 @@ int load_fribidi(void) {
#ifndef _WIN32
fribidi_version_info = *(const char**)dlsym(p_fribidi, "fribidi_version_info");
if (dlerror() || error || (fribidi_version_info == 0)) {
if (error || (fribidi_version_info == 0)) {
dlclose(p_fribidi);
p_fribidi = 0;
return 2;