diff options
| author | Christian Heimes <christian@cheimes.de> | 2013-11-23 21:19:43 +0100 |
|---|---|---|
| committer | Christian Heimes <christian@cheimes.de> | 2013-11-23 21:19:43 +0100 |
| commit | 2489bd83f5762c4e343d8d93af4cd5514eb5c67d (patch) | |
| tree | a7220ecb770301c1ee3db90a3cb25d1cfed9991f | |
| parent | 310e4c43cd87df44b170acf43f63cb94d00321c5 (diff) | |
| download | cpython-git-2489bd83f5762c4e343d8d93af4cd5514eb5c67d.tar.gz | |
Issue #17810: Fixed NULL check in _PyObject_GetItemsIter()
CID 1131948: Logically dead code (DEADCODE)
| -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 5e951de85e..42a0a58b76 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; } |
