]> granicus.if.org Git - neomutt/commitdiff
set new regex
authorRichard Russon <rich@flatcap.org>
Wed, 17 Jan 2018 13:30:47 +0000 (13:30 +0000)
committerRichard Russon <rich@flatcap.org>
Thu, 18 Jan 2018 23:26:51 +0000 (23:26 +0000)
init.c

diff --git a/init.c b/init.c
index a32ec441921e91de9d809da3b7c795cf626639cd..a4bc1632c1171d9d121a2343a5e95a879284f55b 100644 (file)
--- 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;