]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix bug introduced in rev. 46807 where variable was not declared at top of block.
authorBrett Cannon <bcannon@gmail.com>
Fri, 9 Jun 2006 22:49:31 +0000 (22:49 +0000)
committerBrett Cannon <bcannon@gmail.com>
Fri, 9 Jun 2006 22:49:31 +0000 (22:49 +0000)
Objects/abstract.c

index 895e915fc58291f73bf19ddc329669a181640328..15ed89ea4f6e68e52c63e741d5d0994178050482 100644 (file)
@@ -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(