commit | 2489bd83f5762c4e343d8d93af4cd5514eb5c67d | [log] [tgz] |
---|---|---|
author | Christian Heimes <christian@cheimes.de> | Sat Nov 23 21:19:43 2013 +0100 |
committer | Christian Heimes <christian@cheimes.de> | Sat Nov 23 21:19:43 2013 +0100 |
tree | a7220ecb770301c1ee3db90a3cb25d1cfed9991f | |
parent | 310e4c43cd87df44b170acf43f63cb94d00321c5 [diff] |
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; }