Commit 0f408e23 authored by Thomas Roessler's avatar Thomas Roessler

Fix crypt-hook. From Dale Woolridge

<[email protected]>.
parent 2f84e44b
......@@ -157,11 +157,11 @@ int mutt_parse_hook (BUFFER *buf, BUFFER *s, unsigned long data, BUFFER *err)
else
{
rx = safe_malloc (sizeof (regex_t));
#ifdef M_PGPHOOK
if ((rc = REGCOMP (rx, NONULL(pattern.data), ((data & (M_PGPHOOK|M_CHARSETHOOK)) ? REG_ICASE : 0))) != 0)
#ifdef M_CRYPTHOOK
if ((rc = REGCOMP (rx, NONULL(pattern.data), ((data & (M_CRYPTHOOK|M_CHARSETHOOK)) ? REG_ICASE : 0))) != 0)
#else
if ((rc = REGCOMP (rx, NONULL(pattern.data), (data & (M_CHARSETHOOK|M_ICONVHOOK)) ? REG_ICASE : 0)) != 0)
#endif /* HAVE_PGP */
#endif /* M_CRYPTHOOK */
{
regerror (rc, rx, err->data, err->dsize);
regfree (rx);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment