diff options
author | Christian Heimes <christian@cheimes.de> | 2013-11-23 20:19:43 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2013-11-23 20:19:43 (GMT) |
commit | 2489bd83f5762c4e343d8d93af4cd5514eb5c67d (patch) | |
tree | a7220ecb770301c1ee3db90a3cb25d1cfed9991f /Objects | |
parent | 310e4c43cd87df44b170acf43f63cb94d00321c5 (diff) | |
download | cpython-2489bd83f5762c4e343d8d93af4cd5514eb5c67d.zip cpython-2489bd83f5762c4e343d8d93af4cd5514eb5c67d.tar.gz cpython-2489bd83f5762c4e343d8d93af4cd5514eb5c67d.tar.bz2 |
Issue #17810: Fixed NULL check in _PyObject_GetItemsIter()
CID 1131948: Logically dead code (DEADCODE)
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/typeobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ _PyObject_GetItemsIter(PyObject *obj, PyObject **listitems, } else { *listitems = PyObject_GetIter(obj); - if (listitems == NULL) + if (*listitems == NULL) return -1; } |