diff options
Diffstat (limited to 'Objects/unicodeobject.c')
-rw-r--r-- | Objects/unicodeobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 3e583d7..e3c5d04 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -1542,6 +1542,8 @@ PyUnicode_DecodeUTF32Stateful(const char *s, #else int iorder[] = {3, 2, 1, 0}; #endif + PyObject *errorHandler = NULL; + PyObject *exc = NULL; /* On narrow builds we split characters outside the BMP into two codepoints => count how much extra space we need. */ #ifndef Py_UNICODE_WIDE @@ -1549,8 +1551,6 @@ PyUnicode_DecodeUTF32Stateful(const char *s, if (((Py_UCS4 *)s)[i] >= 0x10000) pairs++; #endif - PyObject *errorHandler = NULL; - PyObject *exc = NULL; /* This might be one to much, because of a BOM */ unicode = _PyUnicode_New((size+3)/4+pairs); |