From d59c9315d8570ec7951f737442c57bff729f58ea Mon Sep 17 00:00:00 2001 From: Suman Manjunath Date: Mon, 2 Feb 2009 04:04:19 +0000 Subject: Patch from Matt McCutchen 2: Fix for bug #567935 (Don't use an uninitialized variable). svn path=/trunk/; revision=37208 --- mail/em-folder-tree.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mail/em-folder-tree.c') diff --git a/mail/em-folder-tree.c b/mail/em-folder-tree.c index b66c80b31b..54173a5e51 100644 --- a/mail/em-folder-tree.c +++ b/mail/em-folder-tree.c @@ -2099,16 +2099,16 @@ emft_popup_uvfolder (EPopup *ep, EPopupItem *pitem, void *data) { EMFolderTree *emft = data; CamelFolder *folder; - char *meta = camel_object_meta_get(folder, "vfolder:unread"); if ((folder = em_folder_tree_get_selected_folder (emft)) != NULL) { + char *meta = camel_object_meta_get(folder, "vfolder:unread"); if (!meta || strcmp(meta, "false") == 0) camel_object_meta_set(folder, "vfolder:unread", "true"); else camel_object_meta_set(folder, "vfolder:unread", "false"); + camel_object_state_write (folder); + g_free (meta); } - camel_object_state_write (folder); - g_free (meta); } static EPopupItem emft_popup_items[] = { -- cgit