From 62c36d1564cd1e464b5bd17b12f37b5dab13dca6 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Tue, 24 Jul 2001 22:24:03 +0000 Subject: [PATCH] oops, and just in case value is NULL... --- camel/camel-mime-utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/camel/camel-mime-utils.c b/camel/camel-mime-utils.c index f8e4745..424234d 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 */ -- 2.7.4