]> granicus.if.org Git - python/commitdiff
Move another variable declaration up.
authorWalter Dörwald <walter@livinglogic.de>
Fri, 17 Aug 2007 16:58:43 +0000 (16:58 +0000)
committerWalter Dörwald <walter@livinglogic.de>
Fri, 17 Aug 2007 16:58:43 +0000 (16:58 +0000)
Objects/unicodeobject.c

index 3e583d79bb56989676b3de3a20abc2bfad2f4366..e3c5d042a78fd8a2e7c6a652ce6a0984865fb74f 100644 (file)
@@ -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);