Kaydet (Commit) f859d0d7 authored tarafından Benjamin Peterson's avatar Benjamin Peterson

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

üst aa187c68
...@@ -340,6 +340,7 @@ unpack_add_info(LogReaderObject *self) ...@@ -340,6 +340,7 @@ unpack_add_info(LogReaderObject *self)
{ {
PyObject *key = NULL; PyObject *key = NULL;
PyObject *value = NULL; PyObject *value = NULL;
PyObject *list;
int err; int err;
err = unpack_string(self, &key); err = unpack_string(self, &key);
...@@ -348,7 +349,7 @@ unpack_add_info(LogReaderObject *self) ...@@ -348,7 +349,7 @@ unpack_add_info(LogReaderObject *self)
err = unpack_string(self, &value); err = unpack_string(self, &value);
if (err) if (err)
goto finally; goto finally;
PyObject *list = PyDict_GetItem(self->info, key); list = PyDict_GetItem(self->info, key);
if (list == NULL) { if (list == NULL) {
list = PyList_New(0); list = PyList_New(0);
if (list == NULL) { if (list == NULL) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment