diff options
author | Milan Crha <mcrha@redhat.com> | 2008-09-09 23:36:15 +0800 |
---|---|---|
committer | Milan Crha <mcrha@src.gnome.org> | 2008-09-09 23:36:15 +0800 |
commit | bdd9596bfd9aec50627c619d6c0e6cc086c70a23 (patch) | |
tree | 0784cab65c4fa2ad9594a351d5e0a2252454c4f4 /plugins | |
parent | 58d44034c21b0aa03f6d4d8889d4b939134319bb (diff) | |
download | gsoc2013-evolution-bdd9596bfd9aec50627c619d6c0e6cc086c70a23.tar.gz gsoc2013-evolution-bdd9596bfd9aec50627c619d6c0e6cc086c70a23.tar.zst gsoc2013-evolution-bdd9596bfd9aec50627c619d6c0e6cc086c70a23.zip |
** Fix for bug #551492
2008-09-09 Milan Crha <mcrha@redhat.com>
** Fix for bug #551492
* prefer-plain.c: (org_gnome_prefer_plain_multipart_alternative):
Initialize variable before using it.
svn path=/trunk/; revision=36290
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/prefer-plain/ChangeLog | 7 | ||||
-rw-r--r-- | plugins/prefer-plain/prefer-plain.c | 6 |
2 files changed, 10 insertions, 3 deletions
diff --git a/plugins/prefer-plain/ChangeLog b/plugins/prefer-plain/ChangeLog index 3db9632f09..9fbb00082b 100644 --- a/plugins/prefer-plain/ChangeLog +++ b/plugins/prefer-plain/ChangeLog @@ -1,3 +1,10 @@ +2008-09-09 Milan Crha <mcrha@redhat.com> + + ** Fix for bug #551492 + + * prefer-plain.c: (org_gnome_prefer_plain_multipart_alternative): + Initialize variable before using it. + 2008-09-02 Sankar P <psankar@novell.com> License Changes diff --git a/plugins/prefer-plain/prefer-plain.c b/plugins/prefer-plain/prefer-plain.c index 6e5d38b487..45cafa562a 100644 --- a/plugins/prefer-plain/prefer-plain.c +++ b/plugins/prefer-plain/prefer-plain.c @@ -110,6 +110,9 @@ org_gnome_prefer_plain_multipart_alternative(void *ep, EMFormatHookTarget *t) CamelMimePart *part, *display_part = NULL; int i, nparts, partidlen, displayid = 0; + /* FIXME: this part-id stuff is poking private data, needs api */ + partidlen = t->format->part_id->len; + if (epp_mode == EPP_NORMAL) { gboolean have_plain = FALSE; @@ -168,9 +171,6 @@ org_gnome_prefer_plain_multipart_alternative(void *ep, EMFormatHookTarget *t) } } - /* this part-id stuff is poking private data, needs api */ - partidlen = t->format->part_id->len; - /* if we found a text part, show it */ if (display_part) { g_string_append_printf(t->format->part_id, ".alternative.%d", displayid); |