summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2012-04-18 23:41:56 (GMT)
committerGregory P. Smith <greg@krypto.org>2012-04-18 23:41:56 (GMT)
commita72aa843b66e80cc6f97a5e3571952d941e82404 (patch)
tree38d598e7d7f01e67fe38ee46ea50ebaec127b72f /Python
parent9b5952d7cd64712dd68aebd577ce9cb0a67ca76c (diff)
downloadcpython-a72aa843b66e80cc6f97a5e3571952d941e82404.zip
cpython-a72aa843b66e80cc6f97a5e3571952d941e82404.tar.gz
cpython-a72aa843b66e80cc6f97a5e3571952d941e82404.tar.bz2
Fix compiler warning related to issue #14331. harmless.
Diffstat (limited to 'Python')
-rw-r--r--Python/import.c3
1 files changed, 2 insertions, 1 deletions
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);