[Python-checkins] python/dist/src/Objects tupleobject.c,2.86,2.87

arigo at users.sourceforge.net arigo at users.sourceforge.net
Sat Mar 20 16:35:12 EST 2004


Update of /cvsroot/python/python/dist/src/Objects
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2882

Modified Files:
	tupleobject.c 
Log Message:
memset() hunt continuing.  This is a net win.


Index: tupleobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/tupleobject.c,v
retrieving revision 2.86
retrieving revision 2.87
diff -C2 -d -r2.86 -r2.87
*** tupleobject.c	18 Mar 2004 22:43:10 -0000	2.86
--- tupleobject.c	20 Mar 2004 21:35:09 -0000	2.87
***************
*** 28,31 ****
--- 28,32 ----
  {
  	register PyTupleObject *op;
+ 	int i;
  	if (size < 0) {
  		PyErr_BadInternalCall();
***************
*** 69,73 ****
  			return NULL;
  	}
! 	memset(op->ob_item, 0, sizeof(*op->ob_item) * size);
  #if MAXSAVESIZE > 0
  	if (size == 0) {
--- 70,75 ----
  			return NULL;
  	}
! 	for (i=0; i < size; i++)
! 		op->ob_item[i] = NULL;
  #if MAXSAVESIZE > 0
  	if (size == 0) {




More information about the Python-checkins mailing list