summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2011-06-07 03:24:11 (GMT)
committerBrett Cannon <brett@python.org>2011-06-07 03:24:11 (GMT)
commiteb175c473d8a01ddf554fc45c566fc8e65f69ded (patch)
tree6f77cfd47033bebd2aaf56b7c54a00bf62ac3c31 /Modules
parent5fac8af22ce0fc18c19d02e4f08eaba144b77d07 (diff)
downloadcpython-eb175c473d8a01ddf554fc45c566fc8e65f69ded.zip
cpython-eb175c473d8a01ddf554fc45c566fc8e65f69ded.tar.gz
cpython-eb175c473d8a01ddf554fc45c566fc8e65f69ded.tar.bz2
Remove a redundant assignment.
Found by LLVM/clang 2.9.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/nismodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/nismodule.c b/Modules/nismodule.c
index a81ca8c..0af495f 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)
{