[Commits] [SCM] claws branch, master, updated. 3.16.0-202-g386c838
mones at claws-mail.org
mones at claws-mail.org
Mon Jun 11 12:31:56 CEST 2018
The branch, master has been updated
via 386c838845d6a44891555fee3d230889bf8126df (commit)
from f7c10678ad9b7f4470b75618fcd34f5964d40724 (commit)
Summary of changes:
src/messageview.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit 386c838845d6a44891555fee3d230889bf8126df
Author: Ricardo Mones <ricardo at mones.org>
Date: Mon Jun 11 12:31:29 2018 +0200
Fix CID#1436912: Dereferencing null pointer "msginfo->folder"
diff --git a/src/messageview.c b/src/messageview.c
index 558ab6b..8441aef 100644
--- a/src/messageview.c
+++ b/src/messageview.c
@@ -1537,8 +1537,8 @@ gint messageview_show(MessageView *messageview, MsgInfo *msginfo,
}
messageview_find_part_depth_first(&context, MIMETYPE_TEXT, "html");
if (context.found &&
- (msginfo->folder->prefs->promote_html_part == HTML_PROMOTE_ALWAYS ||
- (msginfo->folder->prefs->promote_html_part == HTML_PROMOTE_DEFAULT &&
+ ((msginfo->folder && msginfo->folder->prefs->promote_html_part == HTML_PROMOTE_ALWAYS) ||
+ ((msginfo->folder && msginfo->folder->prefs->promote_html_part == HTML_PROMOTE_DEFAULT) &&
prefs_common.promote_html_part))) { /* html found */
mimeinfo = context.found;
if (messageview_try_select_mimeinfo(messageview, msginfo, mimeinfo))
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list