aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-mime-part-utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'camel/camel-mime-part-utils.c')
-rw-r--r--camel/camel-mime-part-utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/camel/camel-mime-part-utils.c b/camel/camel-mime-part-utils.c
index 33442f2b20..a3a5d390a4 100644
--- a/camel/camel-mime-part-utils.c
+++ b/camel/camel-mime-part-utils.c
@@ -393,7 +393,7 @@ simple_data_wrapper_construct_from_parser (CamelDataWrapper *dw, CamelMimeParser
/* we're not even going to bother trying to convert, so set the
rawtext bit to TRUE and let the mailer deal with it. */
dw->rawtext = TRUE;
- } else if (!strcasecmp (charset, "utf-8")) {
+ } else if (!strcasecmp (charset, "utf-8") && buffer->len) {
/* check that it is valid utf8 */
dw->rawtext = !g_utf8_validate (buffer->data, buffer->len, NULL);
}