mirror of https://github.com/python/cpython
The initialization of posix_putenv_garbage should only be done when it
is defined...
This commit is contained in:
parent
d1466b968f
commit
b3d3956e01
|
@ -4783,5 +4783,7 @@ INITFUNC()
|
||||||
|
|
||||||
PyDict_SetItemString(d, "error", PyExc_OSError);
|
PyDict_SetItemString(d, "error", PyExc_OSError);
|
||||||
|
|
||||||
|
#ifdef HAVE_PUTENV
|
||||||
posix_putenv_garbage = PyDict_New();
|
posix_putenv_garbage = PyDict_New();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue