From: Gregory P. Smith Date: Wed, 18 Apr 2012 23:41:56 +0000 (-0700) Subject: Fix compiler warning related to issue #14331. harmless. X-Git-Tag: v2.7.4rc1~892^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a72aa843b66e80cc6f97a5e3571952d941e82404;p=python Fix compiler warning related to issue #14331. harmless. --- diff --git a/Python/import.c b/Python/import.c index 4d8a610c3d..108a1e1b07 100644 --- a/Python/import.c +++ b/Python/import.c @@ -1267,7 +1267,8 @@ find_module(char *fullname, char *subname, PyObject *path, char *buf, } name = PyMem_MALLOC(MAXPATHLEN+1); if (name == NULL) { - return PyErr_NoMemory(); + PyErr_NoMemory(); + return NULL; } strcpy(name, subname);