diff options
Diffstat (limited to 'composer/e-msg-composer.c')
-rw-r--r-- | composer/e-msg-composer.c | 6 |
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) { |