From: Sjoerd Mullender Date: Tue, 14 Sep 1993 08:37:39 +0000 (+0000) Subject: Bug fix: check whether call succeeded *after* the call. X-Git-Tag: v1.0.1~215 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d96ec44f3899641695f7b00bee0cc90e328c0127;p=thirdparty%2FPython%2Fcpython.git Bug fix: check whether call succeeded *after* the call. --- diff --git a/Modules/stropmodule.c b/Modules/stropmodule.c index 4a10b7cf4048..6686abf58f19 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); }