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 f8e4745400..424234d600 100644
--- a/camel/camel-mime-utils.c
+++ b/camel/camel-mime-utils.c
@@ -1970,7 +1970,7 @@ header_decode_param (const char **in, char **paramp, char **valuep, int *is_rfc2
}
}
- if (!g_utf8_validate (value, -1, NULL)) {
+ if (value && !g_utf8_validate (value, -1, NULL)) {
/* The (broken) mailer sent us an unencoded 8bit value
* attempt to save it by assuming it's in the user's
* locale and converting to utf8 */