diff options
author | Sjoerd Mullender <sjoerd@acm.org> | 1993-09-14 08:37:39 (GMT) |
---|---|---|
committer | Sjoerd Mullender <sjoerd@acm.org> | 1993-09-14 08:37:39 (GMT) |
commit | d96ec44f3899641695f7b00bee0cc90e328c0127 (patch) | |
tree | e4d054409fa3ebe93cc495b2fd66846c26623419 | |
parent | 4150ede53c42edb3e77373414f9c6ee070bfa366 (diff) | |
download | cpython-d96ec44f3899641695f7b00bee0cc90e328c0127.zip cpython-d96ec44f3899641695f7b00bee0cc90e328c0127.tar.gz cpython-d96ec44f3899641695f7b00bee0cc90e328c0127.tar.bz2 |
Bug fix: check whether call succeeded *after* the call.
-rw-r--r-- | Modules/stropmodule.c | 2 |
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); } |