]> granicus.if.org Git - mutt/commitdiff
Use ctx instead of Context when checking whether or not to do IMAP search.
authorBrendan Cully <brendan@kublai.com>
Wed, 21 Sep 2005 19:30:57 +0000 (19:30 +0000)
committerBrendan Cully <brendan@kublai.com>
Wed, 21 Sep 2005 19:30:57 +0000 (19:30 +0000)
Resolves a possible segfault in color index ~b operations. I can't remember
whether Context vs ctx was intentional - I doubt it.

pattern.c

index dd043685281231139c0b224d7af0d90730fac3d2..09cde4474ac79e3fc332af7486dfb01fb2f8b1d8 100644 (file)
--- a/pattern.c
+++ b/pattern.c
@@ -1050,7 +1050,7 @@ mutt_pattern_exec (struct pattern_t *pat, pattern_exec_flag flags, CONTEXT *ctx,
     case M_WHOLE_MSG:
 #ifdef USE_IMAP
       /* IMAP search sets h->matched at search compile time */
-      if (Context->magic == M_IMAP && pat->stringmatch)
+      if (ctx->magic == M_IMAP && pat->stringmatch)
        return (h->matched);
 #endif
       return (pat->not ^ msg_search (ctx, pat, h->msgno));