Bug fix: check whether call succeeded *after* the call.
This commit is contained in:
parent
4150ede53c
commit
d96ec44f38
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue