]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Bug fix: check whether call succeeded *after* the call.
authorSjoerd Mullender <sjoerd@acm.org>
Tue, 14 Sep 1993 08:37:39 +0000 (08:37 +0000)
committerSjoerd Mullender <sjoerd@acm.org>
Tue, 14 Sep 1993 08:37:39 +0000 (08:37 +0000)
Modules/stropmodule.c

index 4a10b7cf4048c97c9b8a624d15d89046a22824f3..6686abf58f19c94c301b19bbb77452db4893296f 100644 (file)
@@ -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);
        }