[Python-checkins] python/dist/src/Python import.c,2.219,2.220

nnorwitz@users.sourceforge.net nnorwitz@users.sourceforge.net
2003年3月23日 06:31:05 -0800


Update of /cvsroot/python/python/dist/src/Python
In directory sc8-pr-cvs1:/tmp/cvs-serv5935/Python
Modified Files:
	import.c 
Log Message:
SF patch #708201, unchecked return value in import.c by Jason Harper
Will backport.
Index: import.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/import.c,v
retrieving revision 2.219
retrieving revision 2.220
diff -C2 -d -r2.219 -r2.220
*** import.c	17 Feb 2003 18:18:00 -0000	2.219
--- import.c	23 Mar 2003 14:31:01 -0000	2.220
***************
*** 1925,1928 ****
--- 1925,1930 ----
 
 	pname = PyString_FromString(name);
+ 	if (pname == NULL)
+ 		return NULL;
 	result = PyImport_Import(pname);
 	Py_DECREF(pname);

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