From: NeilBrown Date: Fri, 23 Aug 2013 05:59:37 +0000 (+1000) Subject: Browser: avoid unused-variable error from valgrind. X-Git-Tag: v1.0~2 X-Git-Url: http://git.neil.brown.name/?a=commitdiff_plain;h=41e80a977708514051acaa9986fbc1c2bc44a6ad;p=wiggle.git Browser: avoid unused-variable error from valgrind. Signed-off-by: NeilBrown --- diff --git a/vpatch.c b/vpatch.c index fb31947..2ec31d5 100644 --- a/vpatch.c +++ b/vpatch.c @@ -613,12 +613,13 @@ static int check_line(struct mpos pos, struct file fm, struct file fb, if (mode & (BEFORE|AFTER)) rv |= CHANGES; } else if (type == Extraneous) { - if (fb.list[m[pos.p.m].b].start[0] == '\0') + if (fb.list[m[pos.p.m].b].start[0] == '\0') { /* hunk headers don't count as wiggles * and nothing before a hunk header * can possibly be part of this 'line' */ + e.start = NULL; break; - else + } else rv |= WIGGLED; } else if (type == Unmatched) unmatched = 1;