mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
Fix compiler warning related to issue #14331. harmless.
This commit is contained in:
parent
9b5952d7cd
commit
a72aa843b6
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue