From b70e8a1958a15dadd4e4371427498bc11a7b8077 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Sat, 6 Oct 2012 17:16:39 +0200 Subject: [PATCH] and another one --- Objects/abstract.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Objects/abstract.c b/Objects/abstract.c index eb3a766c199..84e827ad8cd 100644 --- a/Objects/abstract.c +++ b/Objects/abstract.c @@ -78,7 +78,7 @@ _PyObject_HasLen(PyObject *o) { Py_ssize_t PyObject_LengthHint(PyObject *o, Py_ssize_t defaultvalue) { - PyObject *hint; + PyObject *hint, *result; Py_ssize_t res; _Py_IDENTIFIER(__length_hint__); res = PyObject_Length(o); @@ -98,7 +98,7 @@ PyObject_LengthHint(PyObject *o, Py_ssize_t defaultvalue) } return defaultvalue; } - PyObject *result = PyObject_CallFunctionObjArgs(hint, NULL); + result = PyObject_CallFunctionObjArgs(hint, NULL); Py_DECREF(hint); if (result == NULL) { if (PyErr_ExceptionMatches(PyExc_TypeError)) {