From 59baa759e4cc4ab66f240f35e3cb7edfb4375952 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Sat, 26 Aug 2006 02:54:40 +0000 Subject: The daily ritual: fix C89 violations. --- Objects/iterobject.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Objects/iterobject.c b/Objects/iterobject.c index dc4c583..3fe861b 100644 --- a/Objects/iterobject.c +++ b/Objects/iterobject.c @@ -340,8 +340,9 @@ zipiter_next(zipiterobject *zit) Py_INCREF(result); for (i = 0; i < tuplesize; i++) { PyObject *it = PyTuple_GET_ITEM(zit->it_tuple, i); + PyObject *item; assert(PyIter_Check(it)); - PyObject *item = (*it->ob_type->tp_iternext)(it); + item = (*it->ob_type->tp_iternext)(it); if (item == NULL) { Py_DECREF(result); return NULL; @@ -356,8 +357,9 @@ zipiter_next(zipiterobject *zit) return NULL; for (i = 0; i < tuplesize; i++) { PyObject *it = PyTuple_GET_ITEM(zit->it_tuple, i); + PyObject *item; assert(PyIter_Check(it)); - PyObject *item = (*it->ob_type->tp_iternext)(it); + item = (*it->ob_type->tp_iternext)(it); if (item == NULL) { Py_DECREF(result); return NULL; -- cgit v0.12