mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Bug fix: check whether call succeeded *after* the call.
This commit is contained in:
parent
4150ede53c
commit
d96ec44f38
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue