summaryrefslogtreecommitdiff
path: root/Modules/nismodule.c
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2011-06-06 20:24:11 -0700
committerBrett Cannon <brett@python.org>2011-06-06 20:24:11 -0700
commit34a740a88288e4b8d12a82713e27b170907d24bd (patch)
tree301d4e8bd3c4b59e5338b38ef87c6ba61ab42905 /Modules/nismodule.c
parent3f50da93582e6ac24172d5efe504ec481a94533d (diff)
downloadcpython-34a740a88288e4b8d12a82713e27b170907d24bd.tar.gz
Remove a redundant assignment.
Found by LLVM/clang 2.9.
Diffstat (limited to 'Modules/nismodule.c')
-rw-r--r--Modules/nismodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/nismodule.c b/Modules/nismodule.c
index a81ca8ca4d..0af495fa53 100644
--- a/Modules/nismodule.c
+++ b/Modules/nismodule.c
@@ -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)
{