mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
Revert r79131
- Issue #1039, #8154: Fix os.execlp() crash with missing 2nd argument.
This commit is contained in:
parent
3828741cdc
commit
a0dc275f08
3 changed files with 0 additions and 10 deletions
|
|
@ -2979,11 +2979,6 @@ posix_execv(PyObject *self, PyObject *args)
|
|||
PyMem_Free(path);
|
||||
return NULL;
|
||||
}
|
||||
if (argc < 1) {
|
||||
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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue