Commit 7d28b6b3 authored by Benjamin Peterson's avatar Benjamin Peterson

return NULL here

parent fa6bc299
......@@ -91,7 +91,8 @@ dl_funcptr _PyImport_GetDynLoadFunc(const char *shortname,
int i;
struct stat statb;
if (fstat(fileno(fp), &statb) == -1) {
return PyErr_SetFromErrno(PyExc_IOError);
PyErr_SetFromErrno(PyExc_IOError);
return NULL;
}
for (i = 0; i < nhandles; i++) {
if (statb.st_dev == handles[i].dev &&
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment