]> granicus.if.org Git - python/commitdiff
The initialization of posix_putenv_garbage should only be done when it
authorGuido van Rossum <guido@python.org>
Mon, 31 Jan 2000 18:41:26 +0000 (18:41 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 31 Jan 2000 18:41:26 +0000 (18:41 +0000)
is defined...

Modules/posixmodule.c

index 7736ac39465ac31a3b9b87f827b68a18fef4612e..20170d6d154936d0e584082468495e5f05472602 100644 (file)
@@ -4783,5 +4783,7 @@ INITFUNC()
 
        PyDict_SetItemString(d, "error", PyExc_OSError);
 
+#ifdef HAVE_PUTENV
        posix_putenv_garbage = PyDict_New();
+#endif
 }