10000 bpo-30602: Fix lastarg in os.spawnve() (#2287) (#2357) · python/cpython@c472fb6 · GitHub
[go: up one dir, main page]

Skip to content

Commit c472fb6

Browse files
authored
bpo-30602: Fix lastarg in os.spawnve() (#2287) (#2357)
Fix a regression introduced by myself in the commit 526b226. (cherry picked from commit c8d6ab2)
1 parent c1d5345 commit c472fb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/posixmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5189,7 +5189,7 @@ os_spawnve_impl(PyObject *module, int mode, path_t *path, PyObject *argv,
51895189
goto fail_1;
51905190
}
51915191
if (i == 0 && !argvlist[0][0]) {
5192-
lastarg = i;
5192+
lastarg = i + 1;
51935193
PyErr_SetString(
51945194
PyExc_ValueError,
51955195
"spawnv() arg 2 first element cannot be empty");

0 commit comments

Comments
 (0)
0