summaryrefslogtreecommitdiff
path: root/Objects/stringobject.c
diff options
context:
space:
mode:
authorMichael W. Hudson <mwh@python.net>2005-01-31 17:09:25 +0000
committerMichael W. Hudson <mwh@python.net>2005-01-31 17:09:25 +0000
commit0ce294faede87e3170d17702131e6719ccb1fdad (patch)
tree0fd43e20fc711971b1b63ccb6c0b6aaa430f4577 /Objects/stringobject.c
parentb94bc23224cf89f8f6e1aea37a432ad5ac49f1f5 (diff)
downloadcpython-0ce294faede87e3170d17702131e6719ccb1fdad.tar.gz
More bug #1077106 stuff, sorry -- modem induced impatiece!
This should go on whatever bugfix branches the other fetches up on.
Diffstat (limited to 'Objects/stringobject.c')
-rw-r--r--Objects/stringobject.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Objects/stringobject.c b/Objects/stringobject.c
index b8e5f41342..b90221a6b8 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++;