From a9734efa53fe1014426b1eb8ae41dee81ece57fd Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Tue, 18 Jan 2011 13:59:38 +0100 Subject: Do not dereference NULL local_error variable --- mail/em-folder-tree.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'mail') diff --git a/mail/em-folder-tree.c b/mail/em-folder-tree.c index 62590689bb..9304adda5c 100644 --- a/mail/em-folder-tree.c +++ b/mail/em-folder-tree.c @@ -659,8 +659,9 @@ folder_tree_cell_edited_cb (EMFolderTree *folder_tree, e_alert_run_dialog_for_args ( parent, "mail:no-rename-folder", old_full_name, new_full_name, - local_error->message, NULL); - g_clear_error (&local_error); + local_error ? local_error->message : _("Unknown error"), NULL); + if (local_error) + g_clear_error (&local_error); goto exit; } -- cgit v1.2.3