[Python-checkins] cpython (2.7): Fix compiler warning related to issue #14331. harmless.

gregory.p.smith python-checkins at python.org
Thu Apr 19 01:42:18 CEST 2012


http://hg.python.org/cpython/rev/b82a471d2c5e
changeset:   76412:b82a471d2c5e
branch:      2.7
parent:      76408:dd23333b579a
user:        Gregory P. Smith <greg at krypto.org>
date:        Wed Apr 18 16:41:56 2012 -0700
summary:
  Fix compiler warning related to issue #14331.  harmless.

files:
  Python/import.c |  3 ++-
  1 files changed, 2 insertions(+), 1 deletions(-)


diff --git a/Python/import.c b/Python/import.c
--- a/Python/import.c
+++ b/Python/import.c
@@ -1267,7 +1267,8 @@
     }
     name = PyMem_MALLOC(MAXPATHLEN+1);
     if (name == NULL) {
-        return PyErr_NoMemory();
+        PyErr_NoMemory();
+        return NULL;
     }
     strcpy(name, subname);
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list