From: Richard Russon Date: Wed, 17 Jan 2018 13:30:47 +0000 (+0000) Subject: set new regex X-Git-Tag: neomutt-20180223~41^2~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=41cc85d01eaf3bd5869f7679acc3b87e741e5d51;p=neomutt set new regex --- diff --git a/init.c b/init.c index a32ec4419..a4bc1632c 100644 --- a/init.c +++ b/init.c @@ -182,7 +182,8 @@ static int parse_regex(int idx, struct Buffer *tmp, struct Buffer *err) } else { - ptr = mutt_mem_calloc(1, sizeof(struct Regex *)); + ptr = mutt_mem_calloc(1, sizeof(struct Regex)); + *(struct Regex **) MuttVars[idx].var = ptr; } bool not = false;