aboutsummaryrefslogtreecommitdiff
path: root/match.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-01-18 10:47:20 -0800
committerBruce Hill <bruce@bruce-hill.com>2021-01-18 10:47:20 -0800
commit46f1747947503a6fab403e2d77e97408a47cbae7 (patch)
tree061f73dc9a4ee098c841ee376bb425283bed7925 /match.c
parenteece8c85564b9c5ae0cb3edfe7edb684242e9227 (diff)
More static analyzer cleanup
Diffstat (limited to 'match.c')
-rw-r--r--match.c1
1 files changed, 1 insertions, 0 deletions
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)) {