From d96ec44f3899641695f7b00bee0cc90e328c0127 Mon Sep 17 00:00:00 2001 From: Sjoerd Mullender Date: Tue, 14 Sep 1993 08:37:39 +0000 Subject: Bug fix: check whether call succeeded *after* the call. --- Modules/stropmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- cgit v0.12