changeset: 87452:3e16c8c34e69 user: Christian Heimes date: Sat Nov 23 21:19:43 2013 +0100 files: Objects/typeobject.c description: Issue #17810: Fixed NULL check in _PyObject_GetItemsIter() CID 1131948: Logically dead code (DEADCODE) diff -r 8a8392aff111 -r 3e16c8c34e69 Objects/typeobject.c --- a/Objects/typeobject.c Sat Nov 23 21:14:01 2013 +0100 +++ b/Objects/typeobject.c Sat Nov 23 21:19:43 2013 +0100 @@ -3693,7 +3693,7 @@ } else { *listitems = PyObject_GetIter(obj); - if (listitems == NULL) + if (*listitems == NULL) return -1; }