Skip to content

Commit eb175c4

Browse files
committed
Remove a redundant assignment.
Found by LLVM/clang 2.9.
1 parent 5fac8af commit eb175c4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Modules/nismodule.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ nis_maps (PyObject *self, PyObject *args, PyObject *kwdict)
411411
return NULL;
412412
if ((list = PyList_New(0)) == NULL)
413413
return NULL;
414-
for (maps = maps; maps; maps = maps->next) {
414+
for (; maps; maps = maps->next) {
415415
PyObject *str = PyUnicode_FromString(maps->map);
416416
if (!str || PyList_Append(list, str) < 0)
417417
{

0 commit comments

Comments
 (0)