Fixes [ #430986 ] Buglet in PyUnicode_FromUnicode.

This commit is contained in:
Marc-André Lemburg 2001-06-07 12:26:56 +00:00
parent 2c07195574
commit 8879a33613
1 changed files with 1 additions and 1 deletions

View File

@ -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);