aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--uid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/uid.c b/uid.c
index a0ea4a2e..bcce0d5d 100644
--- a/uid.c
+++ b/uid.c
@@ -222,7 +222,7 @@ void append_str_list(struct idlist **idl, struct idlist **nidl)
*idl = *nidl;
else if ((*idl)->next == (struct idlist *)NULL)
(*idl)->next = *nidl;
- else
+ else if ((*idl)->next != *nidl)
append_str_list(&(*idl)->next, nidl);
}