From 6d26494925d2875fed9739a55ec5d214f18fb972 Mon Sep 17 00:00:00 2001 From: Larry Ewing Date: Wed, 11 Oct 2000 00:14:21 +0000 Subject: make sure we dup the return value of get_reply_to or get_from when 2000-10-10 Larry Ewing * mail-format.c (mail_generate_reply): make sure we dup the return value of get_reply_to or get_from when building the recipient list. svn path=/trunk/; revision=5829 --- mail/ChangeLog | 6 ++++++ mail/mail-format.c | 6 ++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/mail/ChangeLog b/mail/ChangeLog index ecf8f39551..a803676dc2 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,9 +1,15 @@ +2000-10-10 Larry Ewing + + * mail-format.c (mail_generate_reply): make sure we dup the return + value of get_reply_to or get_from when building the recipient list. + 2000-10-10 Iain Holmes * mail-summary.c (generate_html_summary): Removed the
  • from the HTML. 2000-10-10 Cody Russell + * mail-threads.c: Added #include 2000-10-09 Iain Holmes diff --git a/mail/mail-format.c b/mail/mail-format.c index 8d690a1c84..7c2991ab18 100644 --- a/mail/mail-format.c +++ b/mail/mail-format.c @@ -1622,7 +1622,7 @@ EMsgComposer * mail_generate_reply (CamelMimeMessage *message, gboolean to_all) { CamelDataWrapper *contents; - char *text, *subject; + char *text, *subject, *recipient; EMsgComposer *composer; gboolean want_plain, is_html; const char *repl_to, *message_id, *references; @@ -1694,7 +1694,9 @@ mail_generate_reply (CamelMimeMessage *message, gboolean to_all) repl_to = camel_mime_message_get_reply_to (message); if (!repl_to) repl_to = camel_mime_message_get_from (message); - to = g_list_append (NULL, (gpointer)repl_to); + + recipient = g_strdup (repl_to ? repl_to : ""); + to = g_list_append (NULL, (gpointer)recipient); if (to_all) { const CamelInternetAddress *recip; -- cgit v1.2.3