[Python-checkins] r46809 - python/branches/release24-maint/Objects/abstract.c
brett.cannon
python-checkins at python.org
Sat Jun 10 00:49:31 CEST 2006
Author: brett.cannon
Date: Sat Jun 10 00:49:31 2006
New Revision: 46809
Modified:
python/branches/release24-maint/Objects/abstract.c
Log:
Fix bug introduced in rev. 46807 where variable was not declared at top of block.
Modified: python/branches/release24-maint/Objects/abstract.c
==============================================================================
--- python/branches/release24-maint/Objects/abstract.c (original)
+++ python/branches/release24-maint/Objects/abstract.c Sat Jun 10 00:49:31 2006
@@ -1792,9 +1792,10 @@
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(
More information about the Python-checkins
mailing list