diff options
author | Christian Heimes <christian@cheimes.de> | 2012-10-06 15:16:39 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2012-10-06 15:16:39 (GMT) |
commit | b70e8a1958a15dadd4e4371427498bc11a7b8077 (patch) | |
tree | 560de3ed09225bfb121671e6fda7b6dab0ee50ee | |
parent | d3df2060a60a7ec349ad12f43a0dcb34d7fedcb4 (diff) | |
download | cpython-b70e8a1958a15dadd4e4371427498bc11a7b8077.zip cpython-b70e8a1958a15dadd4e4371427498bc11a7b8077.tar.gz cpython-b70e8a1958a15dadd4e4371427498bc11a7b8077.tar.bz2 |
and another one
-rw-r--r-- | Objects/abstract.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/abstract.c b/Objects/abstract.c index eb3a766..84e827a 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)) { |