From 5c9bf39bb2b7a071ee71438b3f0730c26312c0a1 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Tue, 24 Jul 2001 22:24:03 +0000 Subject: oops, and just in case value is NULL... svn path=/trunk/; revision=11363 --- camel/camel-mime-utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'camel') 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 */ -- cgit