]> thyrsus.com Git - comparator.git/commitdiff
Correct loop condition.
authorEric S. Raymond <esr@thyrsus.com>
Tue, 16 Sep 2003 00:56:43 +0000 (00:56 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Tue, 16 Sep 2003 00:56:43 +0000 (00:56 +0000)
main.c

diff --git a/main.c b/main.c
index be174ad32803d187dc47d685b304bb087d854013..8c27b5197434e92fd63d2e7d9f7f248813dc5cbe 100644 (file)
--- 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,