]> granicus.if.org Git - neomutt/commitdiff
fix: missing ! when checking regex pointer
authorTheo <theojepsen@g-m-a-i-l-dotcom>
Thu, 22 Feb 2018 06:51:09 +0000 (07:51 +0100)
committerRichard Russon <rich@flatcap.org>
Thu, 22 Feb 2018 12:11:15 +0000 (12:11 +0000)
mutt/regex.c

index 2d77e3ab6c3e3d2211df01ed309b3933375851c1..2c67af856fabde5153b0e8dbaab245fd105794df 100644 (file)
@@ -217,7 +217,7 @@ bool mutt_regexlist_match(struct RegexList *rl, const char *str)
 
   for (; rl; rl = rl->next)
   {
-    if (!rl->regex || rl->regex->regex)
+    if (!rl->regex || !rl->regex->regex)
       continue;
     if (regexec(rl->regex->regex, str, (size_t) 0, (regmatch_t *) 0, (int) 0) == 0)
     {