diff options
-rw-r--r-- | libsylph/procmsg.c | 2 |
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) { |