From: Benjamin Peterson Date: Tue, 23 Jul 2013 05:08:09 +0000 (-0700) Subject: return NULL here X-Git-Tag: v3.4.0a1~93^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7d28b6b379ec2e772cbaa55c7ed6705459c2d5b4;p=python return NULL here --- diff --git a/Python/dynload_shlib.c b/Python/dynload_shlib.c index e220b21522..75544ed3bc 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 &&