mirror of https://github.com/python/cpython
Issue #17810: Fixed NULL check in _PyObject_GetItemsIter()
CID 1131948: Logically dead code (DEADCODE)
This commit is contained in:
parent
310e4c43cd
commit
2489bd83f5
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue