Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 26421ab

Browse files
committed
merge 3.3
2 parents a3852ff + 7d28b6b commit 26421ab

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Python/dynload_shlib.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ dl_funcptr _PyImport_GetDynLoadFunc(const char *shortname,
8282
int i;
8383
struct stat statb;
8484
if (fstat(fileno(fp), &statb) == -1) {
85-
return PyErr_SetFromErrno(PyExc_IOError);
85+
PyErr_SetFromErrno(PyExc_IOError);
86+
return NULL;
8687
}
8788
for (i = 0; i < nhandles; i++) {
8889
if (statb.st_dev == handles[i].dev &&

0 commit comments

Comments
 (0)