diff options
author | Marc-André Lemburg <mal@egenix.com> | 2001-06-07 12:26:56 (GMT) |
---|---|---|
committer | Marc-André Lemburg <mal@egenix.com> | 2001-06-07 12:26:56 (GMT) |
commit | 8879a33613b33b32bda146a4da1a71d712a684d2 (patch) | |
tree | 4b2c52b593468c49f12932b5f0d662a2265ea17e /Objects | |
parent | 2c071955746c0ce296629d7b9194e2af14f5ce16 (diff) | |
download | cpython-8879a33613b33b32bda146a4da1a71d712a684d2.zip cpython-8879a33613b33b32bda146a4da1a71d712a684d2.tar.gz cpython-8879a33613b33b32bda146a4da1a71d712a684d2.tar.bz2 |
Fixes [ #430986 ] Buglet in PyUnicode_FromUnicode.
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/unicodeobject.c | 2 |
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); |