Mercurial > cpython-lru_cache-weakref
diff Python/dynload_shlib.c @ 84804:042ff9325c5e 3.3
return NULL here
| author | Benjamin Peterson <benjamin@python.org> |
|---|---|
| date | Mon, 22 Jul 2013 22:08:09 -0700 |
| parents | 654268ff29b5 |
| children | a5681f50bae2 |
line wrap: on
line diff
--- a/Python/dynload_shlib.c Mon Jul 22 21:00:11 2013 +0300 +++ b/Python/dynload_shlib.c Mon Jul 22 22:08:09 2013 -0700 @@ -91,7 +91,8 @@ 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 &&
