aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core
diff options
context:
space:
mode:
authorGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2014-03-18 10:14:07 -0700
committerGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2014-03-18 10:14:07 -0700
commit91ab2414d7360e99d1ba172009f4f7e701b16812 (patch)
tree4f6055db0d8052e73670e1b1514db5a82a896c06 /src/core
parentd6817b3c7f7f631df8b43356f1200853ac327965 (diff)
Fixed crash
Diffstat (limited to 'src/core')
-rw-r--r--src/core/renderer/MCHTMLRenderer.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/renderer/MCHTMLRenderer.cc b/src/core/renderer/MCHTMLRenderer.cc
index b2e85217..bbc0d591 100644
--- a/src/core/renderer/MCHTMLRenderer.cc
+++ b/src/core/renderer/MCHTMLRenderer.cc
@@ -198,14 +198,17 @@ static String * htmlForAbstractMessage(String * folder, AbstractMessage * messag
htmlRendererContext context;
context.dataCallback = dataCallback;
context.htmlCallback = htmlCallback;
+ context.relatedAttachments = NULL;
+ context.attachments = NULL;
context.firstRendered = 0;
context.folder = folder;
context.state = RENDER_STATE_NONE;
-
+
context.hasMixedTextAndAttachments = false;
context.pass = 0;
context.firstAttachment = false;
context.hasTextPart = false;
+
htmlForAbstractPart(mainPart, &context);
context.relatedAttachments = relatedAttachments;