From ed21f552bbad288dd7963f859df11870509cbc27 Mon Sep 17 00:00:00 2001 From: Matthew Loper Date: Wed, 26 Jul 2000 21:02:08 +0000 Subject: Make the mime parser a bit less reckless. More reckful? svn path=/trunk/; revision=4365 --- camel/camel-mime-utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'camel/camel-mime-utils.c') diff --git a/camel/camel-mime-utils.c b/camel/camel-mime-utils.c index 18c8aa2408..e6b7e0350b 100644 --- a/camel/camel-mime-utils.c +++ b/camel/camel-mime-utils.c @@ -1747,7 +1747,7 @@ header_references_decode(const char *in) struct _header_references *head = NULL, *node; char *id, *word; - if (in == NULL) + if (in == NULL || in[0] == '\0') return NULL; while (*inptr) { @@ -1764,7 +1764,7 @@ header_references_decode(const char *in) word = header_decode_word(&inptr); if (word) g_free (word); - else + else if (*inptr != '\0') inptr++; /* Stupid mailer tricks */ } } -- cgit