commit | 8879a33613b33b32bda146a4da1a71d712a684d2 | [log] [tgz] |
---|---|---|
author | Marc-André Lemburg <mal@egenix.com> | Thu Jun 07 12:26:56 2001 +0000 |
committer | Marc-André Lemburg <mal@egenix.com> | Thu Jun 07 12:26:56 2001 +0000 |
tree | 4b2c52b593468c49f12932b5f0d662a2265ea17e | |
parent | 2c071955746c0ce296629d7b9194e2af14f5ce16 [diff] [blame] |
Fixes [ #430986 ] Buglet in PyUnicode_FromUnicode.
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 @@ 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);