summaryrefslogtreecommitdiffstats
path: root/Objects/unicodeobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'Objects/unicodeobject.c')
-rw-r--r--Objects/unicodeobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index 84de8ca..3b4347b 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -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);