move declaration to top of the function to appease the c89 gods

This commit is contained in:
Benjamin Peterson 2016-09-05 13:07:48 -07:00
parent aa187c6878
commit f859d0d7fd
1 changed files with 2 additions and 1 deletions

View File

@ -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) {