From: Brett Cannon Date: Fri, 9 Jun 2006 22:49:31 +0000 (+0000) Subject: Fix bug introduced in rev. 46807 where variable was not declared at top of block. X-Git-Tag: v2.4.4c1~189 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd827cb5502bdcf26f48ac8ff8a34960c0b035c8;p=thirdparty%2FPython%2Fcpython.git Fix bug introduced in rev. 46807 where variable was not declared at top of block. --- diff --git a/Objects/abstract.c b/Objects/abstract.c index 895e915fc582..15ed89ea4f6e 100644 --- a/Objects/abstract.c +++ b/Objects/abstract.c @@ -1792,9 +1792,10 @@ PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw) ternaryfunc call; if ((call = func->ob_type->tp_call) != NULL) { + PyObject *result = NULL; if (Py_EnterRecursiveCall(" in __call__")) return NULL; - PyObject *result = (*call)(func, arg, kw); + result = (*call)(func, arg, kw); Py_LeaveRecursiveCall(); if (result == NULL && !PyErr_Occurred()) PyErr_SetString(