diff options
author | Milan Crha <mcrha@redhat.com> | 2012-02-27 20:44:28 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2012-02-27 20:44:28 +0800 |
commit | 46897aae3a6c68af4d3a96f4275cb0c8c50b5f2f (patch) | |
tree | 4c942bf7e8aa9441575e6aefd906be5c906e3a60 /mail/em-format-html.c | |
parent | 42ac148a4d789b747e7e550ac488dfc2561d164c (diff) | |
download | gsoc2013-evolution-46897aae3a6c68af4d3a96f4275cb0c8c50b5f2f.tar gsoc2013-evolution-46897aae3a6c68af4d3a96f4275cb0c8c50b5f2f.tar.gz gsoc2013-evolution-46897aae3a6c68af4d3a96f4275cb0c8c50b5f2f.tar.bz2 gsoc2013-evolution-46897aae3a6c68af4d3a96f4275cb0c8c50b5f2f.tar.lz gsoc2013-evolution-46897aae3a6c68af4d3a96f4275cb0c8c50b5f2f.tar.xz gsoc2013-evolution-46897aae3a6c68af4d3a96f4275cb0c8c50b5f2f.tar.zst gsoc2013-evolution-46897aae3a6c68af4d3a96f4275cb0c8c50b5f2f.zip |
Avoid crash when formatting broken message (part of bug #663221)
Diffstat (limited to 'mail/em-format-html.c')
-rw-r--r-- | mail/em-format-html.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mail/em-format-html.c b/mail/em-format-html.c index ae2782d568..35fca48c81 100644 --- a/mail/em-format-html.c +++ b/mail/em-format-html.c @@ -1927,6 +1927,8 @@ efh_text_plain (EMFormat *emf, flags = efh->text_html_flags; dw = camel_medium_get_content ((CamelMedium *) part); + if (!dw) + return; /* Check for RFC 2646 flowed text. */ if (camel_content_type_is(dw->mime_type, "text", "plain") |