diff options
author | Guido van Rossum <guido@python.org> | 2000-01-31 18:41:26 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2000-01-31 18:41:26 (GMT) |
commit | b3d3956e019196b28b6c25b2ec195a8815047be8 (patch) | |
tree | 56e22325cbe06f7376c269d7b3ed0f10ff2e6031 /Modules/posixmodule.c | |
parent | d1466b968f38efd8e6098c8cd21bed15e9791e21 (diff) | |
download | cpython-b3d3956e019196b28b6c25b2ec195a8815047be8.zip cpython-b3d3956e019196b28b6c25b2ec195a8815047be8.tar.gz cpython-b3d3956e019196b28b6c25b2ec195a8815047be8.tar.bz2 |
The initialization of posix_putenv_garbage should only be done when it
is defined...
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r-- | Modules/posixmodule.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 7736ac3..20170d6 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -4783,5 +4783,7 @@ INITFUNC() PyDict_SetItemString(d, "error", PyExc_OSError); +#ifdef HAVE_PUTENV posix_putenv_garbage = PyDict_New(); +#endif } |