diff options
Diffstat (limited to 'Python/bltinmodule.c')
-rw-r--r-- | Python/bltinmodule.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index c3beda9..5e74929 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -2381,7 +2381,8 @@ filterunicode(PyObject *func, PyObject *strobj) to avoid reallocations */ if (need < 2 * outlen) need = 2 * outlen; - if (PyUnicode_Resize(&result, need)) { + if (PyUnicode_Resize( + &result, need) < 0) { Py_DECREF(item); goto Fail_1; } |