diff options
Diffstat (limited to 'mail/mail-ops.c')
-rw-r--r-- | mail/mail-ops.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mail/mail-ops.c b/mail/mail-ops.c index 89b83ec426..4852d53b87 100644 --- a/mail/mail-ops.c +++ b/mail/mail-ops.c @@ -601,8 +601,9 @@ mail_send_message (struct _send_queue_msg *m, g_string_append_printf ( err, _("Failed to append to %s: %s\n" "Appending to local 'Sent' folder instead."), - sent_folder_uri, local_error->message); - g_clear_error (&local_error); + sent_folder_uri, local_error ? local_error->message : _("Unknown error")); + if (local_error) + g_clear_error (&local_error); } } |