From a0893a20e50af2deb56e6cfee0b455e310a5805a Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 26 Mar 1998 21:25:51 +0000 Subject: Prevent pathological circular lists. svn path=/trunk/; revision=1730 --- uid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'uid.c') diff --git a/uid.c b/uid.c index 8e51bb32..93fabcbd 100644 --- a/uid.c +++ b/uid.c @@ -277,7 +277,7 @@ int delete_str(struct idlist **idl, int num) void append_str_list(struct idlist **idl, struct idlist **nidl) /* append nidl to idl (does not copy *) */ { - if ((*nidl) == (struct idlist *)NULL) + if ((*nidl) == (struct idlist *)NULL || *nidl == *idl) return; else if ((*idl) == (struct idlist *)NULL) *idl = *nidl; -- cgit v1.2.3