Commit 8879a336 authored by Marc-André Lemburg's avatar Marc-André Lemburg

Fixes [ #430986 ] Buglet in PyUnicode_FromUnicode.

parent 2c071955
......@@ -297,9 +297,9 @@ PyObject *PyUnicode_FromUnicode(const Py_UNICODE *u,
unicode = unicode_latin1[*u];
if (!unicode) {
unicode = _PyUnicode_New(1);
unicode->str[0] = *u;
if (!unicode)
return NULL;
unicode->str[0] = *u;
unicode_latin1[*u] = unicode;
}
Py_INCREF(unicode);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment