From: Amaury Forgeot d'Arc Date: Fri, 13 Jan 2012 20:08:49 +0000 (+0100) Subject: Fix compilation with C89 compilers (Windows...) X-Git-Tag: v3.3.0a1~422 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0a239e9191e7a33b73abf843c2f9c3cc0c6eeab2;p=thirdparty%2FPython%2Fcpython.git Fix compilation with C89 compilers (Windows...) --- diff --git a/Python/ceval.c b/Python/ceval.c index 98219b0c9d71..e2d96c5c4426 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -1837,6 +1837,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag) /* x is now the iterator, make the first next() call */ retval = (*Py_TYPE(x)->tp_iternext)(x); if (!retval) { + PyObject *et, *ev, *tb; /* iter may be exhausted */ Py_CLEAR(x); if (PyErr_Occurred() && @@ -1845,7 +1846,6 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag) break; } /* try to get return value from exception */ - PyObject *et, *ev, *tb; PyErr_Fetch(&et, &ev, &tb); Py_XDECREF(et); Py_XDECREF(tb);