From: Walter Dörwald Date: Fri, 17 Aug 2007 16:58:43 +0000 (+0000) Subject: Move another variable declaration up. X-Git-Tag: v2.6a1~1484 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9ab80a9fb4d78a9574c26950ef694f8837372017;p=thirdparty%2FPython%2Fcpython.git Move another variable declaration up. --- diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 3e583d79bb56..e3c5d042a78f 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);