projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b5952d
)
Fix compiler warning related to issue #14331. harmless.
author
Gregory P. Smith
<greg@krypto.org>
Wed, 18 Apr 2012 23:41:56 +0000
(16:41 -0700)
committer
Gregory P. Smith
<greg@krypto.org>
Wed, 18 Apr 2012 23:41:56 +0000
(16:41 -0700)
Python/import.c
patch
|
blob
|
history
diff --git
a/Python/import.c
b/Python/import.c
index 4d8a610c3dd2733ab62d3f57bcb038af3fb95f56..108a1e1b0741c0ba8194609235618286398998cb 100644
(file)
--- 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);