mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 09:56:17 +03:00
don't call dlerror in fribidi shim
This commit is contained in:
parent
36df718b44
commit
237f6a2662
3
src/thirdparty/fribidi-shim/fribidi.c
vendored
3
src/thirdparty/fribidi-shim/fribidi.c
vendored
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user