From 8879a33613b33b32bda146a4da1a71d712a684d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lemburg?= Date: Thu, 7 Jun 2001 12:26:56 +0000 Subject: Fixes [ #430986 ] Buglet in PyUnicode_FromUnicode. --- Objects/unicodeobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v0.12