Commit c468bd88 authored by Christian Heimes's avatar Christian Heimes

Issue #17810: Fixed NULL check in _PyObject_GetItemsIter()

CID 1131948:  Logically dead code  (DEADCODE)
parent 15904b69
......@@ -3693,7 +3693,7 @@ _PyObject_GetItemsIter(PyObject *obj, PyObject **listitems,
}
else {
*listitems = PyObject_GetIter(obj);
if (listitems == NULL)
if (*listitems == NULL)
return -1;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment