diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2006-07-27 03:55:39 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2006-07-27 03:55:39 (GMT) |
commit | 101bac205d6938316872b74201c4c6efe2bce340 (patch) | |
tree | 2577bbadc2c0e91b921302da9445d4064222568e /Objects/funcobject.c | |
parent | e4abc232d54b1361120de0393f9f0447188b1639 (diff) | |
download | cpython-101bac205d6938316872b74201c4c6efe2bce340.zip cpython-101bac205d6938316872b74201c4c6efe2bce340.tar.gz cpython-101bac205d6938316872b74201c4c6efe2bce340.tar.bz2 |
Closure can't be NULL at this point since we know it's a tuple.
Reported by Klocwork # 74.
Diffstat (limited to 'Objects/funcobject.c')
-rw-r--r-- | Objects/funcobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/funcobject.c b/Objects/funcobject.c index e514eeb..1ba74c5 100644 --- a/Objects/funcobject.c +++ b/Objects/funcobject.c @@ -141,7 +141,7 @@ PyFunction_SetClosure(PyObject *op, PyObject *closure) if (closure == Py_None) closure = NULL; else if (PyTuple_Check(closure)) { - Py_XINCREF(closure); + Py_INCREF(closure); } else { PyErr_Format(PyExc_SystemError, |