From: Christian Heimes Date: Sat, 23 Nov 2013 20:19:43 +0000 (+0100) Subject: Issue #17810: Fixed NULL check in _PyObject_GetItemsIter() X-Git-Tag: v3.4.0b1~48 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2489bd83f5762c4e343d8d93af4cd5514eb5c67d;p=python Issue #17810: Fixed NULL check in _PyObject_GetItemsIter() CID 1131948: Logically dead code (DEADCODE) --- diff --git a/Objects/typeobject.c b/Objects/typeobject.c index 5e951de85e..42a0a58b76 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; }