diff options
author | Gregory P. Smith <greg@krypto.org> | 2012-04-18 23:41:56 (GMT) |
---|---|---|
committer | Gregory P. Smith <greg@krypto.org> | 2012-04-18 23:41:56 (GMT) |
commit | a72aa843b66e80cc6f97a5e3571952d941e82404 (patch) | |
tree | 38d598e7d7f01e67fe38ee46ea50ebaec127b72f /Python | |
parent | 9b5952d7cd64712dd68aebd577ce9cb0a67ca76c (diff) | |
download | cpython-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.c | 3 |
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); |