From: Guido van Rossum 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: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b3d3956e019196b28b6c25b2ec195a8815047be8;p=thirdparty%2FPython%2Fcpython.git 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 7736ac39465a..20170d6d1549 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 }