mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
Remove a redundant assignment.
Found by LLVM/clang 2.9.
This commit is contained in:
@@ -411,7 +411,7 @@ nis_maps (PyObject *self, PyObject *args, PyObject *kwdict)
|
||||
return NULL;
|
||||
if ((list = PyList_New(0)) == NULL)
|
||||
return NULL;
|
||||
for (maps = maps; maps; maps = maps->next) {
|
||||
for (; maps; maps = maps->next) {
|
||||
PyObject *str = PyUnicode_FromString(maps->map);
|
||||
if (!str || PyList_Append(list, str) < 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user