aboutsummaryrefslogtreecommitdiffstats
path: root/uid.c
diff options
context:
space:
mode:
Diffstat (limited to 'uid.c')
-rw-r--r--uid.c2
1 files changed, 1 insertions, 1 deletions
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;