From a72aa843b66e80cc6f97a5e3571952d941e82404 Mon Sep 17 00:00:00 2001 From: "Gregory P. Smith" Date: Wed, 18 Apr 2012 16:41:56 -0700 Subject: Fix compiler warning related to issue #14331. harmless. --- Python/import.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Python/import.c b/Python/import.c index 4d8a610..108a1e1 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); -- cgit v0.12