diff Python/import.c @ 76412:b82a471d2c5e 2.7

Fix compiler warning related to issue #14331. harmless.
author Gregory P. Smith <greg@krypto.org>
date Wed, 18 Apr 2012 16:41:56 -0700
parents ad030571e6c0
children a775fc27f469
line wrap: on
line diff
--- a/Python/import.c	Wed Apr 18 12:48:09 2012 -0700
+++ b/Python/import.c	Wed Apr 18 16:41:56 2012 -0700
@@ -1267,7 +1267,8 @@
     }
     name = PyMem_MALLOC(MAXPATHLEN+1);
     if (name == NULL) {
-        return PyErr_NoMemory();
+        PyErr_NoMemory();
+        return NULL;
     }
     strcpy(name, subname);