mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
parent
9f90439817
commit
b6aa856f25
2 changed files with 2 additions and 14 deletions
|
@ -2171,12 +2171,6 @@ posix_execv(PyObject *self, PyObject *args)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
if (argc == 0) {
|
||||
PyErr_SetString(PyExc_ValueError, "execv() arg 2 must not be empty");
|
||||
PyMem_Free(path);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
argvlist = PyMem_NEW(char *, argc+1);
|
||||
if (argvlist == NULL) {
|
||||
PyMem_Free(path);
|
||||
|
@ -2253,12 +2247,6 @@ posix_execve(PyObject *self, PyObject *args)
|
|||
goto fail_0;
|
||||
}
|
||||
|
||||
if (argc == 0) {
|
||||
PyErr_SetString(PyExc_ValueError,
|
||||
"execve() arg 2 must not be empty");
|
||||
goto fail_0;
|
||||
}
|
||||
|
||||
argvlist = PyMem_NEW(char *, argc+1);
|
||||
if (argvlist == NULL) {
|
||||
PyErr_NoMemory();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue