| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5210,6 +5210,15 @@ os_spawnv_impl(PyObject *module, int mode, PyObject *path, PyObject *argv) | |||
| 5210 | 5210 | "spawnv() arg 2 must contain only strings"); | |
| 5211 | 5211 | return NULL; | |
| 5212 | 5212 | } | |
| 5213 | + #ifdef MS_WINDOWS | ||
| 5214 | + if (i == 0 && !argvlist[0][0]) { | ||
| 5215 | + free_string_array(argvlist, i); | ||
| 5216 | + PyErr_SetString( | ||
| 5217 | + PyExc_ValueError, | ||
| 5218 | + "spawnv() arg 2 first element cannot be empty"); | ||
| 5219 | + return NULL; | ||
| 5220 | + } | ||
| 5221 | + #endif | ||
| 5213 | 5222 | } | |
| 5214 | 5223 | argvlist[argc] = NULL; | |
| 5215 | 5224 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments