]> Pileus Git - ~andy/fetchmail/commitdiff
Fix a search loop.
authorEric S. Raymond <esr@thyrsus.com>
Thu, 5 Dec 1996 04:06:58 +0000 (04:06 -0000)
committerEric S. Raymond <esr@thyrsus.com>
Thu, 5 Dec 1996 04:06:58 +0000 (04:06 -0000)
svn path=/trunk/; revision=599

fetchmail.c

index a1990add397c9034cb0bc5529b38dfa4aabe9f76..539da0e79b45de9fe43833a91df1d61f70e443d1 100644 (file)
@@ -460,7 +460,7 @@ static int load_params(int argc, char **argv, int optind)
             * record from command line and defaults
             */
            for (ctl = querylist; ctl; ctl = ctl->next)
-               if (str_in_list(&ctl->servernames, argv[optind]) == 0)
+               if (str_in_list(&ctl->servernames, argv[optind]))
                    goto foundit;
 
            ctl = hostalloc(&cmd_opts);