[Python-checkins] CVS: python/dist/src/Objects fileobject.c,2.138,2.139

Tim Peters tim_one@users.sourceforge.net
2001年11月09日 12:59:16 -0800


Update of /cvsroot/python/python/dist/src/Objects
In directory usw-pr-cvs1:/tmp/cvs-serv19984/python/Objects
Modified Files:
	fileobject.c 
Log Message:
open_the_file(): Explicitly set errno to 0 before calling fopen().
Index: fileobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/fileobject.c,v
retrieving revision 2.138
retrieving revision 2.139
diff -C2 -d -r2.138 -r2.139
*** fileobject.c	2001年11月09日 19:23:47	2.138
--- fileobject.c	2001年11月09日 20:59:14	2.139
***************
*** 107,110 ****
--- 107,111 ----
 		return NULL;
 	}
+ 	errno = 0;
 #ifdef HAVE_FOPENRF
 	if (*mode == '*') {

AltStyle によって変換されたページ (->オリジナル) /