From: Benjamin Peterson Date: Mon, 5 Sep 2016 20:07:48 +0000 (-0700) Subject: move declaration to top of the function to appease the c89 gods X-Git-Tag: v2.7.13rc1~180 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f859d0d7fd8feb45b6d9a3254cf58156e38fa2fa;p=python move declaration to top of the function to appease the c89 gods --- diff --git a/Modules/_hotshot.c b/Modules/_hotshot.c index da30f3bdc3..33cd38da2f 100644 --- a/Modules/_hotshot.c +++ b/Modules/_hotshot.c @@ -340,6 +340,7 @@ unpack_add_info(LogReaderObject *self) { PyObject *key = NULL; PyObject *value = NULL; + PyObject *list; int err; err = unpack_string(self, &key); @@ -348,7 +349,7 @@ unpack_add_info(LogReaderObject *self) err = unpack_string(self, &value); if (err) goto finally; - PyObject *list = PyDict_GetItem(self->info, key); + list = PyDict_GetItem(self->info, key); if (list == NULL) { list = PyList_New(0); if (list == NULL) {