summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2000-01-31 18:41:26 (GMT)
committerGuido van Rossum <guido@python.org>2000-01-31 18:41:26 (GMT)
commitb3d3956e019196b28b6c25b2ec195a8815047be8 (patch)
tree56e22325cbe06f7376c269d7b3ed0f10ff2e6031
parentd1466b968f38efd8e6098c8cd21bed15e9791e21 (diff)
downloadcpython-b3d3956e019196b28b6c25b2ec195a8815047be8.zip
cpython-b3d3956e019196b28b6c25b2ec195a8815047be8.tar.gz
cpython-b3d3956e019196b28b6c25b2ec195a8815047be8.tar.bz2
The initialization of posix_putenv_garbage should only be done when it
is defined...
-rw-r--r--Modules/posixmodule.c2
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
}