]> thyrsus.com Git - comparator.git/commitdiff
Fix undercounting of matching segments.
authorEric S. Raymond <esr@thyrsus.com>
Wed, 10 Mar 2004 17:18:20 +0000 (17:18 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Wed, 10 Mar 2004 17:18:20 +0000 (17:18 +0000)
report.c

index 9570825a0d8a709d81d2a39b9e902e70b057ba2c..ffd9568a3737d6f874d6c24b2921f33145741cc9 100644 (file)
--- a/report.c
+++ b/report.c
@@ -471,10 +471,7 @@ int line_count(const char *name)
     for (match = hitlist; match < hitlist + mergecount; match++)
        for (i=0; i < match->nmatches; i++)
            if (!strncmp(name, match->matches[i].file->name, strlen(name)))
-           {
                count += match->matches[i].hash.end -  match->matches[i].hash.start + 1;
-               break;
-           }
 
     return(count);
 }