diff options
author | Fabian Groffen <grobian@gentoo.org> | 2010-08-08 10:21:46 -0700 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2010-08-08 10:21:46 -0700 |
commit | 306406f6713c22e6c9e82cc533f9255f379af5f4 (patch) | |
tree | 8b27f06fd0d35a691719be4cd9744400443a95df | |
parent | 53ba39bc991f194e7cecb910d6691f260cb80366 (diff) |
fix crash in limit when user enters invalid regexp
closes #3417
-rw-r--r-- | pattern.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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) |