From: Guido van Rossum <guido@python.org>
Date: Mon, 31 Jan 2000 18:41:26 +0000 (+0000)
Subject: The initialization of posix_putenv_garbage should only be done when it
X-Git-Tag: v1.6a1~520
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b3d3956e019196b28b6c25b2ec195a8815047be8;p=python

The initialization of posix_putenv_garbage should only be done when it
is defined...
---

diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index 7736ac3946..20170d6d15 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
 }