From 785b875268eefe1b1ac5af5360c17b5f769baa34 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sergio=20Villar=20Sen=C3=ADn?= Date: Wed, 20 Jan 2010 10:55:42 +0100 Subject: [PATCH] Fixes a crash creating new messages --- src/modest-tny-msg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modest-tny-msg.c b/src/modest-tny-msg.c index e76be4d..e237efb 100644 --- a/src/modest-tny-msg.c +++ b/src/modest-tny-msg.c @@ -224,7 +224,7 @@ add_html_body_part (TnyMsg *msg, /* Create the stream */ html_body_stream = TNY_STREAM (tny_camel_mem_stream_new_with_buffer - (body, strlen(body))); + (body, (body) ? strlen(body) : 0)); /* Create body part if needed */ html_body_part = modest_formatter_create_body_part (NULL, msg); -- 1.7.9.5