]> granicus.if.org Git - neomutt/commitdiff
fix regex parsing
authorRichard Russon <rich@flatcap.org>
Mon, 1 Jan 2018 12:07:48 +0000 (12:07 +0000)
committerRichard Russon <rich@flatcap.org>
Mon, 1 Jan 2018 12:07:48 +0000 (12:07 +0000)
init.c

diff --git a/init.c b/init.c
index c7602036eba0444bc83302ec9c8d05b83dc5bda6..14d16fb862de305dd91c0099cce402ec0f8094e4 100644 (file)
--- a/init.c
+++ b/init.c
@@ -178,7 +178,7 @@ static int parse_regex(int idx, struct Buffer *tmp, struct Buffer *err)
   if (ptr)
   {
     /* Same pattern as we already have */
-    if (mutt_str_strcmp(ptr->pattern, tmp->data) != 0)
+    if (mutt_str_strcmp(ptr->pattern, tmp->data) == 0)
       return 0;
   }
   else