Fix compiler warning related to issue #14331. harmless.
This commit is contained in:
parent
9b5952d7cd
commit
a72aa843b6
|
@ -1267,7 +1267,8 @@ find_module(char *fullname, char *subname, PyObject *path, char *buf,
|
||||||
}
|
}
|
||||||
name = PyMem_MALLOC(MAXPATHLEN+1);
|
name = PyMem_MALLOC(MAXPATHLEN+1);
|
||||||
if (name == NULL) {
|
if (name == NULL) {
|
||||||
return PyErr_NoMemory();
|
PyErr_NoMemory();
|
||||||
|
return NULL;
|
||||||
}
|
}
|
||||||
strcpy(name, subname);
|
strcpy(name, subname);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue