[evolution/gnome-2-32] Bug #630700 - Crash on message send



commit 84f0a15b38c9934cf6cfef7f1b988cce20c11501
Author: Milan Crha <mcrha redhat com>
Date:   Wed Sep 29 11:12:52 2010 +0200

    Bug #630700 - Crash on message send

 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 ae2d12d..7f84b3b 100644
--- a/mail/mail-ops.c
+++ b/mail/mail-ops.c
@@ -607,8 +607,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);
 			}
 		}
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]