commit | d96ec44f3899641695f7b00bee0cc90e328c0127 | [log] [tgz] |
---|---|---|
author | Sjoerd Mullender <sjoerd@acm.org> | Tue Sep 14 08:37:39 1993 +0000 |
committer | Sjoerd Mullender <sjoerd@acm.org> | Tue Sep 14 08:37:39 1993 +0000 |
tree | e4d054409fa3ebe93cc495b2fd66846c26623419 | |
parent | 4150ede53c42edb3e77373414f9c6ee070bfa366 [diff] [blame] |
Bug fix: check whether call succeeded *after* the call.
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 @@ if (isspace(c)) buf[n++] = c; } + s = newsizedstringobject(buf, n); if (s) { - s = newsizedstringobject(buf, n); dictinsert(d, "whitespace", s); DECREF(s); }