Issue #17810: Fixed NULL check in _PyObject_GetItemsIter()
CID 1131948:  Logically dead code  (DEADCODE)
diff --git a/Objects/typeobject.c b/Objects/typeobject.c
index 5e951de..42a0a58 100644
--- a/Objects/typeobject.c
+++ b/Objects/typeobject.c
@@ -3693,7 +3693,7 @@
     }
     else {
         *listitems = PyObject_GetIter(obj);
-        if (listitems == NULL)
+        if (*listitems == NULL)
             return -1;
     }