mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
The initialization of posix_putenv_garbage should only be done when it
is defined...
This commit is contained in:
parent
d1466b968f
commit
b3d3956e01
1 changed files with 2 additions and 0 deletions
|
|
@ -4783,5 +4783,7 @@ INITFUNC()
|
|||
|
||||
PyDict_SetItemString(d, "error", PyExc_OSError);
|
||||
|
||||
#ifdef HAVE_PUTENV
|
||||
posix_putenv_garbage = PyDict_New();
|
||||
#endif
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue