diff options
author | Benjamin Peterson <benjamin@python.org> | 2013-07-23 05:08:09 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2013-07-23 05:08:09 (GMT) |
commit | 7d28b6b379ec2e772cbaa55c7ed6705459c2d5b4 (patch) | |
tree | dc7d7213faa5a6628ae9a9de7ee2e8269d565b2c | |
parent | fa6bc29987ca0df75a31615b0468d657ff41a747 (diff) | |
download | cpython-7d28b6b379ec2e772cbaa55c7ed6705459c2d5b4.zip cpython-7d28b6b379ec2e772cbaa55c7ed6705459c2d5b4.tar.gz cpython-7d28b6b379ec2e772cbaa55c7ed6705459c2d5b4.tar.bz2 |
return NULL here
-rw-r--r-- | Python/dynload_shlib.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/dynload_shlib.c b/Python/dynload_shlib.c index e220b21..75544ed 100644 --- a/Python/dynload_shlib.c +++ b/Python/dynload_shlib.c @@ -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 && |