diff Objects/funcobject.c @ 39202:bcefbc5e671a legacy-trunk

Closure can't be NULL at this point since we know it's a tuple. Reported by Klocwork # 74.
author Neal Norwitz <nnorwitz@gmail.com>
date Thu, 27 Jul 2006 03:55:39 +0000
parents 934ba5be8f3f
children 9a1288d8200f
line wrap: on
line diff
--- a/Objects/funcobject.c	Thu Jul 27 03:51:58 2006 +0000
+++ b/Objects/funcobject.c	Thu Jul 27 03:55:39 2006 +0000
@@ -141,7 +141,7 @@
 	if (closure == Py_None)
 		closure = NULL;
 	else if (PyTuple_Check(closure)) {
-		Py_XINCREF(closure);
+		Py_INCREF(closure);
 	}
 	else {
 		PyErr_Format(PyExc_SystemError,