Skip to content

Commit 2290aa4

Browse files
grgalexpicnixz
andauthored
Update Modules/_ctypes/callproc.c
Co-authored-by: Bénédikt Tran <[email protected]>
1 parent 4b1bb47 commit 2290aa4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Modules/_ctypes/callproc.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1636,8 +1636,9 @@ static PyObject *py_dl_sym(PyObject *self, PyObject *args)
16361636
(void)dlerror();
16371637
#endif
16381638
ptr = dlsym((void*)handle, name);
1639-
if (ptr)
1639+
if (ptr) {
16401640
return PyLong_FromVoidPtr(ptr);
1641+
}
16411642
#ifdef USE_DLERROR
16421643
const char *dlerr = dlerror();
16431644
if (dlerr) {

0 commit comments

Comments
 (0)