From a55c6f5e5d6e3d23f5a407a29e56ecc27682b2e9 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Tue, 12 Oct 2004 02:01:22 +0000 Subject: ** See bug #67211. 2004-10-11 Not Zed ** See bug #67211. * camel-mime-utils.c (camel_header_raw_check_mailing_list): initialise the match start/end pointers, since some regexec's don't seem to do it. svn path=/trunk/; revision=27541 --- camel/camel-mime-utils.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'camel/camel-mime-utils.c') diff --git a/camel/camel-mime-utils.c b/camel/camel-mime-utils.c index 3c1d4baf1c..4a7b867b52 100644 --- a/camel/camel-mime-utils.c +++ b/camel/camel-mime-utils.c @@ -3842,10 +3842,14 @@ camel_header_raw_check_mailing_list(struct _camel_header_raw **list) { const char *v; regmatch_t match[3]; - int i; + int i, j; for (i = 0; i < sizeof (mail_list_magic) / sizeof (mail_list_magic[0]); i++) { v = camel_header_raw_find (list, mail_list_magic[i].name, NULL); + for (j=0;j<3;j++) { + match[j].rm_so = -1; + match[j].rm_eo = -1; + } if (v != NULL && regexec (&mail_list_magic[i].regex, v, 3, match, 0) == 0 && match[1].rm_so != -1) { char *list; int len1, len2; -- cgit