X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-tny-msg.c;h=e237efb8d64c6221fe00b2919d0662e5f3a13e0b;hp=e76be4d050e2089d4dd373e7b59c028fbcef1a4a;hb=785b875268eefe1b1ac5af5360c17b5f769baa34;hpb=036e2e88da8f0d8129684d146295db8829e074e1 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);