From b3d3956e019196b28b6c25b2ec195a8815047be8 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 31 Jan 2000 18:41:26 +0000 Subject: The initialization of posix_putenv_garbage should only be done when it is defined... --- Modules/posixmodule.c | 2 ++ 1 file changed, 2 insertions(+) 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 } -- cgit v0.12