Remove a redundant assignment.

Found by LLVM/clang 2.9.
This commit is contained in:
Brett Cannon 2011-06-06 20:24:11 -07:00
parent 5fac8af22c
commit eb175c473d
1 changed files with 1 additions and 1 deletions

View File

@ -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)
{