[Python-checkins] cpython (3.3): return NULL here
benjamin.peterson
python-checkins at python.org
Tue Jul 23 07:08:39 CEST 2013
http://hg.python.org/cpython/rev/042ff9325c5e
changeset: 84804:042ff9325c5e
branch: 3.3
parent: 84789:bb63f813a00f
user: Benjamin Peterson <benjamin at python.org>
date: Mon Jul 22 22:08:09 2013 -0700
summary:
return NULL here
files:
Python/dynload_shlib.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/Python/dynload_shlib.c b/Python/dynload_shlib.c
--- a/Python/dynload_shlib.c
+++ b/Python/dynload_shlib.c
@@ -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 &&
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list