aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-mime-utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'camel/camel-mime-utils.c')
-rw-r--r--camel/camel-mime-utils.c4
1 files changed, 2 insertions, 2 deletions
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 */
}
}