]> thyrsus.com Git - comparator.git/commitdiff
Fix a bug in the merge logic.
authorEric S. Raymond <esr@thyrsus.com>
Tue, 2 Sep 2003 05:38:32 +0000 (05:38 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Tue, 2 Sep 2003 05:38:32 +0000 (05:38 +0000)
report.c

index e25e1591008443511f8777fcd8d2ae4e0acb6f90..1f1b48eff20fcf6b756e067644e8130836245761 100644 (file)
--- a/report.c
+++ b/report.c
@@ -245,7 +245,7 @@ static int merge_ranges(struct range_t *p, struct range_t *q, int nmatches)
      * segments of text, which is the only case we are interested in.
      */
     for (i = 0; i < nmatches; i++)
-       if (strcmp(p->file, p->file))
+       if (strcmp(p[i].file, q[i].file))
            return(0);
  
     /*