[Python-checkins] CVS: python/dist/src/Objects dictobject.c,2.80.2.18,2.80.2.19
Tim Peters
tim_one@users.sourceforge.net
Sun, 08 Jul 2001 20:28:38 -0700
Update of /cvsroot/python/python/dist/src/Objects
In directory usw-pr-cvs1:/tmp/cvs-serv3925/descr/dist/src/Objects
Modified Files:
Tag: descr-branch
dictobject.c
Log Message:
Restore some "ain't NULL" asserts. Maybe on Unix you don't care about core
dumps, but I get very weary of rebooting Win98SE <0.4 wink>.
Index: dictobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/dictobject.c,v
retrieving revision 2.80.2.18
retrieving revision 2.80.2.19
diff -C2 -r2.80.2.18 -r2.80.2.19
*** dictobject.c 2001/07/09 01:27:53 2.80.2.18
--- dictobject.c 2001/07/09 03:28:36 2.80.2.19
***************
*** 1677,1680 ****
--- 1677,1681 ----
PyObject *self;
+ assert(type != NULL && type->tp_alloc != NULL);
self = type->tp_alloc(type, 0);
if (self != NULL) {