projects
/
modest
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
036e2e8
)
Fixes a crash creating new messages
author
Sergio Villar Senín
<svillar@igalia.com>
Wed, 20 Jan 2010 09:55:42 +0000
(10:55 +0100)
committer
Sergio Villar Senín
<svillar@igalia.com>
Wed, 20 Jan 2010 09:55:42 +0000
(10:55 +0100)
src/modest-tny-msg.c
patch
|
blob
|
history
diff --git
a/src/modest-tny-msg.c
b/src/modest-tny-msg.c
index
e76be4d
..
e237efb
100644
(file)
--- 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
/* 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);
/* Create body part if needed */
html_body_part = modest_formatter_create_body_part (NULL, msg);