summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSjoerd Mullender <sjoerd@acm.org>1993-09-14 08:37:39 (GMT)
committerSjoerd Mullender <sjoerd@acm.org>1993-09-14 08:37:39 (GMT)
commitd96ec44f3899641695f7b00bee0cc90e328c0127 (patch)
treee4d054409fa3ebe93cc495b2fd66846c26623419
parent4150ede53c42edb3e77373414f9c6ee070bfa366 (diff)
downloadcpython-d96ec44f3899641695f7b00bee0cc90e328c0127.zip
cpython-d96ec44f3899641695f7b00bee0cc90e328c0127.tar.gz
cpython-d96ec44f3899641695f7b00bee0cc90e328c0127.tar.bz2
Bug fix: check whether call succeeded *after* the call.
-rw-r--r--Modules/stropmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/stropmodule.c b/Modules/stropmodule.c
index 4a10b7c..6686abf 100644
--- a/Modules/stropmodule.c
+++ b/Modules/stropmodule.c
@@ -382,8 +382,8 @@ initstrop()
if (isspace(c))
buf[n++] = c;
}
+ s = newsizedstringobject(buf, n);
if (s) {
- s = newsizedstringobject(buf, n);
dictinsert(d, "whitespace", s);
DECREF(s);
}