aboutsummaryrefslogtreecommitdiffstats
path: root/camel
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@src.gnome.org>2001-07-25 06:24:03 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-07-25 06:24:03 +0800
commit5c9bf39bb2b7a071ee71438b3f0730c26312c0a1 (patch)
tree00fcf70bc9081181959f06a7d080f62f2198f3df /camel
parent443f0aba47fb02df592e43a5933b19dcb8b6021d (diff)
downloadgsoc2013-evolution-5c9bf39bb2b7a071ee71438b3f0730c26312c0a1.tar.gz
gsoc2013-evolution-5c9bf39bb2b7a071ee71438b3f0730c26312c0a1.tar.zst
gsoc2013-evolution-5c9bf39bb2b7a071ee71438b3f0730c26312c0a1.zip
oops, and just in case value is NULL...
svn path=/trunk/; revision=11363
Diffstat (limited to 'camel')
-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 */