From: Brendan Cully Date: Wed, 21 Sep 2005 19:30:57 +0000 (+0000) Subject: Use ctx instead of Context when checking whether or not to do IMAP search. X-Git-Tag: mutt-1-5-12-rel~345 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=54d55db13c45c35970a4dc1f09f96a8a8618223d;p=mutt Use ctx instead of Context when checking whether or not to do IMAP search. Resolves a possible segfault in color index ~b operations. I can't remember whether Context vs ctx was intentional - I doubt it. --- diff --git a/pattern.c b/pattern.c index dd043685..09cde447 100644 --- 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));