summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r--Modules/posixmodule.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index b57bc02..99e5864 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -5578,6 +5578,7 @@ INITFUNC(void)
PyDict_SetItemString(d, "error", PyExc_OSError);
#ifdef HAVE_PUTENV
- posix_putenv_garbage = PyDict_New();
+ if (posix_putenv_garbage == NULL)
+ posix_putenv_garbage = PyDict_New();
#endif
}