mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Issue #17810: Fixed NULL check in _PyObject_GetItemsIter()
CID 1131948: Logically dead code (DEADCODE)
This commit is contained in:
parent
310e4c43cd
commit
2489bd83f5
1 changed files with 1 additions and 1 deletions
|
@ -3693,7 +3693,7 @@ _PyObject_GetItemsIter(PyObject *obj, PyObject **listitems,
|
|||
}
|
||||
else {
|
||||
*listitems = PyObject_GetIter(obj);
|
||||
if (listitems == NULL)
|
||||
if (*listitems == NULL)
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue