aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorBharath Acharya <abharath@novell.com>2009-11-13 09:20:41 +0800
committerBharath Acharya <abharath@novell.com>2009-11-13 09:20:41 +0800
commit79e19d570c95b9501268bf99a6caeee4ef68c12d (patch)
tree9a4cf558e42a9c6e59880f42ef81fb2d95462c22 /mail
parent5b1add163ad99b1e8f122f710d3c389b2c9208f2 (diff)
downloadgsoc2013-evolution-79e19d570c95b9501268bf99a6caeee4ef68c12d.tar
gsoc2013-evolution-79e19d570c95b9501268bf99a6caeee4ef68c12d.tar.gz
gsoc2013-evolution-79e19d570c95b9501268bf99a6caeee4ef68c12d.tar.bz2
gsoc2013-evolution-79e19d570c95b9501268bf99a6caeee4ef68c12d.tar.lz
gsoc2013-evolution-79e19d570c95b9501268bf99a6caeee4ef68c12d.tar.xz
gsoc2013-evolution-79e19d570c95b9501268bf99a6caeee4ef68c12d.tar.zst
gsoc2013-evolution-79e19d570c95b9501268bf99a6caeee4ef68c12d.zip
BUG 600217:Crashes in emfh_multipart_related_check
Check for the link
Diffstat (limited to 'mail')
-rw-r--r--mail/em-format-html.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/mail/em-format-html.c b/mail/em-format-html.c
index 47213dc5d5..6fbc6079aa 100644
--- a/mail/em-format-html.c
+++ b/mail/em-format-html.c
@@ -1988,6 +1988,12 @@ emfh_multipart_related_check(struct _EMFormatHTMLJob *job, gint cancelled)
link = g_queue_peek_head_link (job->puri_level->data);
+ if (!link) {
+ g_string_printf (format->part_id, "%s", oldpartid);
+ g_free (oldpartid);
+ return;
+ }
+
while (link->next != NULL) {
EMFormatPURI *puri = link->data;