From f7e39791448316db466c6f483c187d6bbec49cad Mon Sep 17 00:00:00 2001 From: hiro Date: Thu, 4 Apr 2013 09:03:19 +0000 Subject: procmsg.c: procmsg_save_message_as_text(): guard against code conversion failure. git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@3248 ee746299-78ed-0310-b773-934348b2243d --- libsylph/procmsg.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libsylph/procmsg.c b/libsylph/procmsg.c index e9c588e3..dd880a15 100644 --- a/libsylph/procmsg.c +++ b/libsylph/procmsg.c @@ -1924,6 +1924,8 @@ gint procmsg_save_message_as_text(MsgInfo *msginfo, const gchar *dest, partinfo->content_type, to_human_readable(partinfo->content_size)); part_str = conv_codeset_strdup(buf, CS_INTERNAL, encoding); + if (!part_str) + part_str = g_strdup(buf); if (partinfo->mime_type == MIME_TEXT || partinfo->mime_type == MIME_TEXT_HTML) { -- cgit v1.2.3