mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
return NULL here
This commit is contained in:
parent
fa6bc29987
commit
7d28b6b379
1 changed files with 2 additions and 1 deletions
|
@ -91,7 +91,8 @@ dl_funcptr _PyImport_GetDynLoadFunc(const char *shortname,
|
||||||
int i;
|
int i;
|
||||||
struct stat statb;
|
struct stat statb;
|
||||||
if (fstat(fileno(fp), &statb) == -1) {
|
if (fstat(fileno(fp), &statb) == -1) {
|
||||||
return PyErr_SetFromErrno(PyExc_IOError);
|
PyErr_SetFromErrno(PyExc_IOError);
|
||||||
|
return NULL;
|
||||||
}
|
}
|
||||||
for (i = 0; i < nhandles; i++) {
|
for (i = 0; i < nhandles; i++) {
|
||||||
if (statb.st_dev == handles[i].dev &&
|
if (statb.st_dev == handles[i].dev &&
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue