[Python-checkins] python/dist/src/Objects listobject.c,2.157,2.158

mwh at users.sourceforge.net mwh at users.sourceforge.net
Fri Aug 15 06:06:44 EDT 2003


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

Modified Files:
	listobject.c 
Log Message:
My last fix left n used unitialized in tha a==b case.
Fix, by not using n at all in that case.

Needs to be applied to release23-maint, too.


Index: listobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/listobject.c,v
retrieving revision 2.157
retrieving revision 2.158
diff -C2 -d -r2.157 -r2.158
*** listobject.c	14 Aug 2003 17:04:28 -0000	2.157
--- listobject.c	15 Aug 2003 12:06:41 -0000	2.158
***************
*** 476,480 ****
  			/* Special case "a[i:j] = a" -- copy b first */
  			int ret;
! 			v = list_slice(b, 0, n);
  			if (v == NULL)
  				return -1;
--- 476,480 ----
  			/* Special case "a[i:j] = a" -- copy b first */
  			int ret;
! 			v = list_slice(b, 0, b->ob_size);
  			if (v == NULL)
  				return -1;





More information about the Python-checkins mailing list