From de67861145546849b56d6eb784a7381c2ff9475a Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 7 Mar 1997 17:14:44 +0000 Subject: Prevent append from infinite recursion. svn path=/trunk/; revision=921 --- uid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- cgit v1.2.3