aboutsummaryrefslogtreecommitdiff
path: root/libsylph/procmsg.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2013-04-04 09:03:19 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2013-04-04 09:03:19 +0000
commitf7e39791448316db466c6f483c187d6bbec49cad (patch)
tree1db63e7f5b6b166798d54574e396a1ecf4dd0204 /libsylph/procmsg.c
parent743b39ac8098548a2a8f1940c77515da263391b6 (diff)
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
Diffstat (limited to 'libsylph/procmsg.c')
-rw-r--r--libsylph/procmsg.c2
1 files changed, 2 insertions, 0 deletions
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) {