From: Eric S. Raymond Date: Tue, 2 Sep 2003 05:38:32 +0000 (+0000) Subject: Fix a bug in the merge logic. X-Git-Tag: 1.0~77 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=ffb887e3f7fb0759d365b5ffaae98daa5860a0ac;p=comparator.git Fix a bug in the merge logic. --- diff --git a/report.c b/report.c index e25e159..1f1b48e 100644 --- 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); /*