From: Fabian Groffen Date: Sun, 8 Aug 2010 17:21:46 +0000 (-0700) Subject: fix crash in limit when user enters invalid regexp X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=306406f6713c22e6c9e82cc533f9255f379af5f4;p=mutt fix crash in limit when user enters invalid regexp closes #3417 --- diff --git a/pattern.c b/pattern.c index e3fbed70..dbd73bda 100644 --- a/pattern.c +++ b/pattern.c @@ -1302,6 +1302,7 @@ int mutt_pattern_func (int op, char *prompt) simple = safe_strdup (buf); mutt_check_simple (buf, sizeof (buf), NONULL (SimpleSearch)); + memset (&err, 0, sizeof(err)); err.data = error; err.dsize = sizeof (error); if ((pat = mutt_pattern_comp (buf, M_FULL_MSG, &err)) == NULL)