From: Jeffrey Stedfast Date: Tue, 24 Jul 2001 22:24:03 +0000 (+0000) Subject: oops, and just in case value is NULL... X-Git-Tag: upstream/3.7.4~10788 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=62c36d1564cd1e464b5bd17b12f37b5dab13dca6;p=platform%2Fupstream%2Fevolution-data-server.git oops, and just in case value is NULL... --- 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 */