From: Eric S. Raymond Date: Tue, 16 Sep 2003 00:56:43 +0000 (+0000) Subject: Correct loop condition. X-Git-Tag: 2.0~60 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=b79aabc49fc69f5caff318ea71cf0eccc5045a36;p=comparator.git Correct loop condition. --- diff --git a/main.c b/main.c index be174ad..8c27b51 100644 --- a/main.c +++ b/main.c @@ -540,7 +540,7 @@ main(int argc, char *argv[]) exit(0); /* are we running the right instance of comparator? */ - for (scf = scflist; scf; scf = scf->next) + for (scf = scflist; scf->next; scf = scf->next) if (strcmp(scf->hash_method, HASHMETHOD)) { fprintf(stderr,