diff options
-rw-r--r-- | Objects/unicodeobject.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 3b4347b..4bb8fb2 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -183,10 +183,10 @@ PyUnicodeObject *_PyUnicode_New(int length) goto onError; } } - else { + else { unicode->str = PyMem_NEW(Py_UNICODE, length + 1); - } - PyObject_INIT(unicode, &PyUnicode_Type); + } + PyObject_INIT(unicode, &PyUnicode_Type); } else { unicode = PyObject_NEW(PyUnicodeObject, &PyUnicode_Type); |