]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix compilation under Windows
authorAntoine Pitrou <solipsis@pitrou.net>
Sat, 20 Aug 2011 01:19:34 +0000 (03:19 +0200)
committerAntoine Pitrou <solipsis@pitrou.net>
Sat, 20 Aug 2011 01:19:34 +0000 (03:19 +0200)
Modules/_json.c

index 7c5e5e43ed81c11212afb2457a7d2f17db72cd58..d5120fa0c10e05a55e8d04e58d84792fdfcdeac7 100644 (file)
@@ -138,6 +138,7 @@ accumulate_unicode(accumulator *acc, PyObject *obj)
 {
     int ret;
     Py_ssize_t nsmall;
+    PyObject *joined;
     assert(PyUnicode_Check(obj));
 
     if (PyList_Append(acc->small, obj))
@@ -152,7 +153,7 @@ accumulate_unicode(accumulator *acc, PyObject *obj)
      */
     if (nsmall < 100000)
         return 0;
-    PyObject *joined = join_list_unicode(acc->small);
+    joined = join_list_unicode(acc->small);
     if (joined == NULL)
         return -1;
     if (PyList_SetSlice(acc->small, 0, nsmall, NULL)) {