[Python-checkins] python/dist/src/Objects listobject.c, 2.156.8.1, 2.156.8.2

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


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

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


Index: listobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/listobject.c,v
retrieving revision 2.156.8.1
retrieving revision 2.156.8.2
diff -C2 -d -r2.156.8.1 -r2.156.8.2
*** listobject.c	14 Aug 2003 17:25:59 -0000	2.156.8.1
--- listobject.c	15 Aug 2003 12:26:05 -0000	2.156.8.2
***************
*** 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