[Python-checkins] CVS: python/dist/src/Modules posixmodule.c,2.122,2.123

Guido van Rossum guido@cnri.reston.va.us
Mon, 31 Jan 2000 13:41:29 -0500 (EST)


Update of /projects/cvsroot/python/dist/src/Modules
In directory eric:/projects/python/develop/guido/src/Modules

Modified Files:
	posixmodule.c 
Log Message:
The initialization of posix_putenv_garbage should only be done when it
is defined...


Index: posixmodule.c
===================================================================
RCS file: /projects/cvsroot/python/dist/src/Modules/posixmodule.c,v
retrieving revision 2.122
retrieving revision 2.123
diff -C2 -r2.122 -r2.123
*** posixmodule.c	1999/12/30 18:05:43	2.122
--- posixmodule.c	2000/01/31 18:41:26	2.123
***************
*** 4784,4787 ****
--- 4784,4789 ----
  	PyDict_SetItemString(d, "error", PyExc_OSError);
  
+ #ifdef HAVE_PUTENV
  	posix_putenv_garbage = PyDict_New();
+ #endif
  }