[Python-checkins] cpython: Remove a redundant assignment.

brett.cannon python-checkins at python.org
Tue Jun 7 05:24:21 CEST 2011


http://hg.python.org/cpython/rev/d7a67e7eb0e4
changeset: 70697:d7a67e7eb0e4
user: Brett Cannon <brett at python.org>
date: Mon Jun 06 20:24:11 2011 -0700
summary:
 Remove a redundant assignment.
Found by LLVM/clang 2.9.
files:
 Modules/nismodule.c | 2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Modules/nismodule.c b/Modules/nismodule.c
--- a/Modules/nismodule.c
+++ b/Modules/nismodule.c
@@ -411,7 +411,7 @@
 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)
 {
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /