diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 1b6a4538a94..50476ea80be 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -4111,7 +4111,7 @@ static int encode_mbcs(PyObject **repr, else { /* Extend string object */ n = PyBytes_Size(*repr); - if (_PyBytes_Resize(&repr, n + mbcssize) < 0) + if (_PyBytes_Resize(repr, n + mbcssize) < 0) return -1; }