summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorMichael W. Hudson <mwh@python.net>2005-01-31 17:09:25 (GMT)
committerMichael W. Hudson <mwh@python.net>2005-01-31 17:09:25 (GMT)
commitfaa7648ffe6fbc568eeb6457815bd85cef21bfbd (patch)
treeb01b15ed12ebea91388f1b5efe3b94cdd25ef392 /Objects
parent9867ced6c2ba0a47a3d6fa54fdcc0d3a7d31597b (diff)
downloadcpython-faa7648ffe6fbc568eeb6457815bd85cef21bfbd.zip
cpython-faa7648ffe6fbc568eeb6457815bd85cef21bfbd.tar.gz
cpython-faa7648ffe6fbc568eeb6457815bd85cef21bfbd.tar.bz2
More bug #1077106 stuff, sorry -- modem induced impatiece!
This should go on whatever bugfix branches the other fetches up on.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/stringobject.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Objects/stringobject.c b/Objects/stringobject.c
index b8e5f41..b90221a 100644
--- a/Objects/stringobject.c
+++ b/Objects/stringobject.c
@@ -52,6 +52,7 @@ PyObject *
PyString_FromStringAndSize(const char *str, int size)
{
register PyStringObject *op;
+ assert(size >= 0);
if (size == 0 && (op = nullstring) != NULL) {
#ifdef COUNT_ALLOCS
null_strings++;