From 39b456243022a8ade0ae45512cc636eac0f7fc81 Mon Sep 17 00:00:00 2001 From: Chenthill Palanisamy Date: Mon, 9 Nov 2009 14:47:10 +0530 Subject: Bug #601229 - Crashes when replying a mail. --- em-format/em-format.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'em-format') diff --git a/em-format/em-format.c b/em-format/em-format.c index 1285bcbf92..d3ab13b013 100644 --- a/em-format/em-format.c +++ b/em-format/em-format.c @@ -1632,7 +1632,7 @@ emf_multipart_related(EMFormat *emf, CamelStream *stream, CamelMimePart *part, c link = g_queue_peek_head_link (emf->pending_uri_level->data); - while (link->next != NULL) { + while (link && link->next != NULL) { EMFormatPURI *puri = link->data; if (puri->use_count == 0) { -- cgit v1.2.3