diff options
Diffstat (limited to 'mail')
-rw-r--r-- | mail/em-format-html.c | 6 |
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; |