aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-format.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mail-format.c')
-rw-r--r--mail/mail-format.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/mail/mail-format.c b/mail/mail-format.c
index 21e9773353..93ad41fbcb 100644
--- a/mail/mail-format.c
+++ b/mail/mail-format.c
@@ -1616,8 +1616,11 @@ mail_generate_reply (CamelMimeMessage *message, gboolean to_all)
MailConfigIdentity *id;
gchar *sig_file = NULL;
- want_plain = !mail_config_send_html ();
+ composer = e_msg_composer_new_with_sig_file (sig_file);
+ if (!composer)
+ return NULL;
+ want_plain = !mail_config_send_html ();
contents = camel_medium_get_content_object (CAMEL_MEDIUM (message));
text = mail_get_message_body (contents, want_plain, &is_html);
@@ -1625,8 +1628,6 @@ mail_generate_reply (CamelMimeMessage *message, gboolean to_all)
if (id)
sig_file = id->sig;
- composer = E_MSG_COMPOSER (e_msg_composer_new_with_sig_file (sig_file));
-
/* Set the quoted reply text. */
if (text) {
char *repl_text;