diff options
author | Benjamin Peterson <benjamin@python.org> | 2013-07-23 05:08:17 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2013-07-23 05:08:17 (GMT) |
commit | 26421ab30258fd3e30c67cc718bcbd38c8789682 (patch) | |
tree | ff701d173fe4c173281a592afd29317935b52a7e /Python/dynload_shlib.c | |
parent | a3852ff33a7b05b3ff47a8e9572aa2d7cc2a32b3 (diff) | |
parent | 7d28b6b379ec2e772cbaa55c7ed6705459c2d5b4 (diff) | |
download | cpython-26421ab30258fd3e30c67cc718bcbd38c8789682.zip cpython-26421ab30258fd3e30c67cc718bcbd38c8789682.tar.gz cpython-26421ab30258fd3e30c67cc718bcbd38c8789682.tar.bz2 |
merge 3.3
Diffstat (limited to 'Python/dynload_shlib.c')
-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 50e6982..888fbfc 100644 --- a/Python/dynload_shlib.c +++ b/Python/dynload_shlib.c @@ -82,7 +82,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 && |