diff options
Diffstat (limited to 'mail/em-format.c')
-rw-r--r-- | mail/em-format.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/mail/em-format.c b/mail/em-format.c index 32fc1d0b91..1871e885c3 100644 --- a/mail/em-format.c +++ b/mail/em-format.c @@ -1235,10 +1235,13 @@ emf_multipart_alternative(EMFormat *emf, CamelStream *stream, CamelMimePart *par /* as per rfc, find the last part we know how to display */ nparts = camel_multipart_get_number(mp); for (i = 0; i < nparts; i++) { + CamelContentType *type; + char *mime_type; + /* is it correct to use the passed in *part here? */ part = camel_multipart_get_part(mp, i); - CamelContentType *type = camel_mime_part_get_content_type (part); - char *mime_type = camel_content_type_simple (type); + type = camel_mime_part_get_content_type (part); + mime_type = camel_content_type_simple (type); camel_strdown (mime_type); |