From 46f1747947503a6fab403e2d77e97408a47cbae7 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 18 Jan 2021 10:47:20 -0800 Subject: More static analyzer cleanup --- match.c | 1 + 1 file changed, 1 insertion(+) (limited to 'match.c') diff --git a/match.c b/match.c index b30a183..e2e00c2 100644 --- a/match.c +++ b/match.c @@ -381,6 +381,7 @@ static match_t *match(def_t *defs, file_t *f, const char *str, pat_t *pat, bool .lines=f->lines, // I think this works, but am not 100% sure .nlines=1 + get_line_number(f, m1->end)-get_line_number(f, m1->start), .mmapped=f->mmapped, + .pats = NULL, .next = NULL, }; match_t *m2 = match(defs, &inner, str, pat->args.multiple.second, ignorecase); if ((m2 == NULL || m2->end != m1->end) == (pat->type == BP_EQUAL)) { -- cgit v1.2.3