Fix compiler warning related to issue #14331. harmless.

This commit is contained in:
Gregory P. Smith 2012-04-18 16:41:56 -07:00
parent 9b5952d7cd
commit a72aa843b6
1 changed files with 2 additions and 1 deletions

View File

@ -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);