]> git.neil.brown.name Git - wiggle.git/commitdiff
Browser: avoid unused-variable error from valgrind.
authorNeilBrown <neilb@suse.de>
Fri, 23 Aug 2013 05:59:37 +0000 (15:59 +1000)
committerNeilBrown <neilb@suse.de>
Fri, 23 Aug 2013 05:59:37 +0000 (15:59 +1000)
Signed-off-by: NeilBrown <neilb@suse.de>
vpatch.c

index fb31947d65c6e6db0eda91953150c4fabe2e91fa..2ec31d56ed370b70eed325368890468cc6d1d249 100644 (file)
--- 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;