aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-03-07 17:14:44 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-03-07 17:14:44 +0000
commitde67861145546849b56d6eb784a7381c2ff9475a (patch)
tree2948fee56ac7ce0a32194acec86049d31b569535
parent133a1630f9b76ea28ef59595c45f681aeb34319a (diff)
downloadfetchmail-de67861145546849b56d6eb784a7381c2ff9475a.tar.gz
fetchmail-de67861145546849b56d6eb784a7381c2ff9475a.tar.bz2
fetchmail-de67861145546849b56d6eb784a7381c2ff9475a.zip
Prevent append from infinite recursion.
svn path=/trunk/; revision=921
-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);
}