From 2489bd83f5762c4e343d8d93af4cd5514eb5c67d Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Sat, 23 Nov 2013 21:19:43 +0100 Subject: Issue #17810: Fixed NULL check in _PyObject_GetItemsIter() CID 1131948: Logically dead code (DEADCODE) --- Objects/typeobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/typeobject.c b/Objects/typeobject.c index 5e951de..42a0a58 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -3693,7 +3693,7 @@ _PyObject_GetItemsIter(PyObject *obj, PyObject **listitems, } else { *listitems = PyObject_GetIter(obj); - if (listitems == NULL) + if (*listitems == NULL) return -1; } -- cgit v0.12