[Python-checkins] python/dist/src/Python import.c,2.192.6.3,2.192.6.4

nnorwitz@users.sourceforge.net nnorwitz@users.sourceforge.net
Sun, 23 Mar 2003 06:32:59 -0800


Update of /cvsroot/python/python/dist/src/Python
In directory sc8-pr-cvs1:/tmp/cvs-serv6551/Python

Modified Files:
      Tag: release22-maint
	import.c 
Log Message:
Backport 2.220,
SF patch #708201, unchecked return value in import.c by Jason Harper


Index: import.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/import.c,v
retrieving revision 2.192.6.3
retrieving revision 2.192.6.4
diff -C2 -d -r2.192.6.3 -r2.192.6.4
*** import.c	13 Feb 2003 17:01:28 -0000	2.192.6.3
--- import.c	23 Mar 2003 14:32:56 -0000	2.192.6.4
***************
*** 1617,1620 ****
--- 1617,1622 ----
  
  	pname = PyString_FromString(name);
+ 	if (pname == NULL)
+ 		return NULL;
  	result = PyImport_Import(pname);
  	Py_DECREF(pname);