diff options
Diffstat (limited to 'Python')
-rw-r--r-- | Python/bltinmodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index 06d8616..aa65ebc 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -1993,8 +1993,8 @@ filterstring(PyObject *func, PyObject *strobj) Py_DECREF(item); } - if (j < len && _PyString_Resize(&result, j) < 0) - return NULL; + if (j < len) + _PyString_Resize(&result, j); return result; |