Browse Source

Fix compiler warning related to issue #14331. harmless.

pull/2332/head
Gregory P. Smith 14 years ago
parent
commit
a72aa843b6
  1. 3
      Python/import.c

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

Loading…
Cancel
Save