8000 [3.6] bpo-30602: Fix lastarg in os.spawnve() (#2287) by vstinner · Pull Request #2357 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

[3.6] bpo-30602: Fix lastarg in os.spawnve() (#2287) #2357

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 23, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
bpo-30602: Fix lastarg in os.spawnve() (#2287)
Fix a regression introduced by myself in the commit
526b226.
(cherry picked from commit c8d6ab2)
  • Loading branch information
vstinner committed Jun 23, 2017
commit f5d30b65c5c9f64560dc579f56193f04a8df80a4
2 changes: 1 addition & 1 deletion Modules/posixmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -5189,7 +5189,7 @@ os_spawnve_impl(PyObject *module, int mode, path_t *path, PyObject *argv,
goto fail_1;
}
if (i == 0 && !argvlist[0][0]) {
lastarg = i;
lastarg = i + 1;
PyErr_SetString(
PyExc_ValueError,
"spawnv() arg 2 first element cannot be empty");
Expand Down
0