mirror of
https://github.com/python/cpython.git
synced 2025-11-12 07:02:33 +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))
|
if (isspace(c))
|
||||||
buf[n++] = c;
|
buf[n++] = c;
|
||||||
}
|
}
|
||||||
if (s) {
|
|
||||||
s = newsizedstringobject(buf, n);
|
s = newsizedstringobject(buf, n);
|
||||||
|
if (s) {
|
||||||
dictinsert(d, "whitespace", s);
|
dictinsert(d, "whitespace", s);
|
||||||
DECREF(s);
|
DECREF(s);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue