aboutsummaryrefslogtreecommitdiffstats
path: root/camel
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2004-10-12 10:01:22 +0800
committerMichael Zucci <zucchi@src.gnome.org>2004-10-12 10:01:22 +0800
commita55c6f5e5d6e3d23f5a407a29e56ecc27682b2e9 (patch)
treed8a655a94cf46baf4a8aeaf959304c7d4d906f3d /camel
parentd86c247a2ee0546f11ebe8cb762e782cca287a35 (diff)
downloadgsoc2013-evolution-a55c6f5e5d6e3d23f5a407a29e56ecc27682b2e9.tar
gsoc2013-evolution-a55c6f5e5d6e3d23f5a407a29e56ecc27682b2e9.tar.gz
gsoc2013-evolution-a55c6f5e5d6e3d23f5a407a29e56ecc27682b2e9.tar.bz2
gsoc2013-evolution-a55c6f5e5d6e3d23f5a407a29e56ecc27682b2e9.tar.lz
gsoc2013-evolution-a55c6f5e5d6e3d23f5a407a29e56ecc27682b2e9.tar.xz
gsoc2013-evolution-a55c6f5e5d6e3d23f5a407a29e56ecc27682b2e9.tar.zst
gsoc2013-evolution-a55c6f5e5d6e3d23f5a407a29e56ecc27682b2e9.zip
** See bug #67211.
2004-10-11 Not Zed <NotZed@Ximian.com> ** 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
Diffstat (limited to 'camel')
-rw-r--r--camel/ChangeLog8
-rw-r--r--camel/camel-mime-utils.c6
2 files changed, 13 insertions, 1 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index 1c53c13304..3f75ad95c9 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,3 +1,11 @@
+2004-10-11 Not Zed <NotZed@Ximian.com>
+
+ ** 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.
+
2004-10-09 Sivaiah Nallagatla <snallagatla@novell.com>
* providers/groupwise/camel-gw-listner.c (add_esource) :
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;