]> granicus.if.org Git - neomutt/commitdiff
move test to the right place
authorRichard Russon <rich@flatcap.org>
Mon, 23 Oct 2017 11:37:19 +0000 (12:37 +0100)
committerRichard Russon <rich@flatcap.org>
Tue, 7 Nov 2017 13:48:46 +0000 (13:48 +0000)
pattern.c

index dbf6c028c8b5a9ee66513e72e47867066c5d9458..2a2aca5679e135a6ed8990c1d2c3e836d1a3005c 100644 (file)
--- a/pattern.c
+++ b/pattern.c
@@ -1771,9 +1771,9 @@ int mutt_pattern_exec(struct Pattern *pat, enum PatternExecFlag flags,
     case MUTT_BROKEN:
       return (pat->not ^ (h->thread && h->thread->fake_thread));
 #ifdef USE_NNTP
+    case MUTT_NEWSGROUPS:
       if (!h->env)
         return 0;
-    case MUTT_NEWSGROUPS:
       return (pat->not ^ (h->env->newsgroups && patmatch(pat, h->env->newsgroups) == 0));
 #endif
   }