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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/camel/camel-mime-utils.c b/camel/camel-mime-utils.c
index fe1e7d51d8..7967ff8e45 100644
--- a/camel/camel-mime-utils.c
+++ b/camel/camel-mime-utils.c
@@ -1966,7 +1966,7 @@ check_header(struct _header_raw *h)
unsigned char *p;
p = h->value;
- while (*p) {
+ while (p && *p) {
if (!isascii(*p)) {
g_warning("Appending header violates rfc: %s: %s", h->name, h->value);
return;