From 8bdc418acddf276242c2419dfeaa1c9d83262dd6 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Wed, 14 Apr 2004 06:56:28 +0000 Subject: hmm, use the right pointer when iterating the pending uri list. 2004-04-14 Not Zed * em-format.c (emf_multipart_related): hmm, use the right pointer when iterating the pending uri list. svn path=/trunk/; revision=25454 --- mail/ChangeLog | 5 +++++ mail/em-format.c | 9 ++++----- 2 files changed, 9 insertions(+), 5 deletions(-) (limited to 'mail') diff --git a/mail/ChangeLog b/mail/ChangeLog index aa8dbcd6a1..2df893d3c1 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,8 @@ +2004-04-14 Not Zed + + * em-format.c (emf_multipart_related): hmm, use the right pointer + when iterating the pending uri list. + 2004-04-13 Jeffrey Stedfast * mail-component.c (impl_createControls): We don't actually want diff --git a/mail/em-format.c b/mail/em-format.c index f9d2a19e33..1d67abbcc2 100644 --- a/mail/em-format.c +++ b/mail/em-format.c @@ -21,7 +21,6 @@ * */ - #ifdef HAVE_CONFIG_H #include #endif @@ -1289,13 +1288,13 @@ emf_multipart_related(EMFormat *emf, CamelStream *stream, CamelMimePart *part, c puri = (EMFormatPURI *)ptree->uri_list.head; purin = puri->next; while (purin) { - if (purin->use_count == 0) { - d(printf("part '%s' '%s' used '%d'\n", purin->uri?purin->uri:"", purin->cid, purin->use_count)); - if (purin->func == emf_write_related) { + if (puri->use_count == 0) { + d(printf("part '%s' '%s' used '%d'\n", puri->uri?puri->uri:"", puri->cid, puri->use_count)); + if (puri->func == emf_write_related) { g_string_printf(emf->part_id, "%s", puri->part_id); em_format_part(emf, stream, puri->part); } else - printf("unreferenced uri generated by format code: %s\n", purin->uri?purin->uri:purin->cid); + printf("unreferenced uri generated by format code: %s\n", puri->uri?puri->uri:puri->cid); } puri = purin; purin = purin->next; -- cgit v1.2.3