svn path=/trunk/; revision=1722
ctl = hostalloc(&cmd_opts);
ctl->server.pollname = xstrdup(argv[optind]);
+ /* avoid making pathological circular lists */
+ ctl->server.localdomains = (struct idlist *)NULL;
+ ctl->localnames = (struct idlist *)NULL;
+ ctl->mailboxes = (struct idlist *)NULL;
+ ctl->smtphunt = (struct idlist *)NULL;
+
foundit:
ctl->active = TRUE;
}
void append_str_list(struct idlist **idl, struct idlist **nidl)
/* append nidl to idl (does not copy *) */
{
- if ((*idl) == (struct idlist *)NULL)
+ if ((*nidl) == (struct idlist *)NULL)
+ return;
+ else if ((*idl) == (struct idlist *)NULL)
*idl = *nidl;
else if ((*idl)->next == (struct idlist *)NULL)
(*idl)->next = *nidl;