From eb175c473d8a01ddf554fc45c566fc8e65f69ded Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Mon, 6 Jun 2011 20:24:11 -0700 Subject: Remove a redundant assignment. Found by LLVM/clang 2.9. --- Modules/nismodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v0.12