[evolution/wip/gsettings] Do not dereference NULL local_error variable



commit a9734efa53fe1014426b1eb8ae41dee81ece57fd
Author: Milan Crha <mcrha redhat com>
Date:   Tue Jan 18 13:59:38 2011 +0100

    Do not dereference NULL local_error variable

 mail/em-folder-tree.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/mail/em-folder-tree.c b/mail/em-folder-tree.c
index 6259068..9304add 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;
 	}
 



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