Issue #17810: Fixed NULL check in _PyObject_GetItemsIter()

CID 1131948:  Logically dead code  (DEADCODE)
This commit is contained in:
Christian Heimes 2013-11-23 21:19:43 +01:00
parent 310e4c43cd
commit 2489bd83f5
1 changed files with 1 additions and 1 deletions

View File

@ -3693,7 +3693,7 @@ _PyObject_GetItemsIter(PyObject *obj, PyObject **listitems,
} }
else { else {
*listitems = PyObject_GetIter(obj); *listitems = PyObject_GetIter(obj);
if (listitems == NULL) if (*listitems == NULL)
return -1; return -1;
} }