[Python-checkins] python/dist/src/Objects stringobject.c, 2.226,
2.227
mwh at users.sourceforge.net
mwh at users.sourceforge.net
Mon Jan 31 18:09:28 CET 2005
Update of /cvsroot/python/python/dist/src/Objects
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24013/Objects
Modified Files:
stringobject.c
Log Message:
More bug #1077106 stuff, sorry -- modem induced impatiece!
This should go on whatever bugfix branches the other fetches up on.
Index: stringobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/stringobject.c,v
retrieving revision 2.226
retrieving revision 2.227
diff -u -d -r2.226 -r2.227
--- stringobject.c 26 Oct 2004 01:52:37 -0000 2.226
+++ stringobject.c 31 Jan 2005 17:09:25 -0000 2.227
@@ -52,6 +52,7 @@
PyString_FromStringAndSize(const char *str, int size)
{
register PyStringObject *op;
+ assert(size >= 0);
if (size == 0 && (op = nullstring) != NULL) {
#ifdef COUNT_ALLOCS
null_strings++;
More information about the Python-checkins
mailing list