aboutsummaryrefslogtreecommitdiffstats
path: root/composer/e-msg-composer.c
diff options
context:
space:
mode:
authorParthasarathi Susarla <sparthasarathi@novell.com>2005-12-05 16:31:03 +0800
committerParthasarathi Susarla <saps@src.gnome.org>2005-12-05 16:31:03 +0800
commit3fa50f34f7acc8df4440303c3cd87812336b80e2 (patch)
tree9d85c157e6b4deb1ec88b4a872b66e39f33b7c40 /composer/e-msg-composer.c
parent19d9717dd1c1078b2809819d5bbaa7a4f287a693 (diff)
downloadgsoc2013-evolution-3fa50f34f7acc8df4440303c3cd87812336b80e2.tar.gz
gsoc2013-evolution-3fa50f34f7acc8df4440303c3cd87812336b80e2.tar.zst
gsoc2013-evolution-3fa50f34f7acc8df4440303c3cd87812336b80e2.zip
** See bug #322863 Check if the account indeed exists before
2005-12-05 Parthasarathi Susarla <sparthasarathi@novell.com> ** See bug #322863 * e-msg-composer.c: (e_msg_composer_new_with_message): Check if the account indeed exists before freeing/duping it. The account would typically not exist, when redirecting mails originated from other accounts which are not configured in ones machine. svn path=/trunk/; revision=30718
Diffstat (limited to 'composer/e-msg-composer.c')
-rw-r--r--composer/e-msg-composer.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c
index 52ef59a2da..ae263cc9ba 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -4366,8 +4366,10 @@ e_msg_composer_new_with_message (CamelMimeMessage *message)
if ((account = mail_config_get_account_by_uid(account_name)) == NULL)
/* 'old' setting */
account = mail_config_get_account_by_name(account_name);
- g_free (account_name);
- account_name = g_strdup (account->name);
+ if (account) {
+ g_free (account_name);
+ account_name = g_strdup (account->name);
+ }
}
if (postto == NULL) {