We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a72d15c commit c7f165fCopy full SHA for c7f165f
PC/_subprocess.c
@@ -341,9 +341,13 @@ getenvironment(PyObject* environment)
341
envsize = PyMapping_Length(environment);
342
343
keys = PyMapping_Keys(environment);
344
+ if (!keys) {
345
+ return NULL;
346
+ }
347
values = PyMapping_Values(environment);
- if (!keys || !values)
348
+ if (!values) {
349
goto error;
350
351
352
out = PyString_FromStringAndSize(NULL, 2048);
353
if (! out)
0 commit comments