evolution r37208 - trunk/mail



Author: msuman
Date: Mon Feb  2 04:04:19 2009
New Revision: 37208
URL: http://svn.gnome.org/viewvc/evolution?rev=37208&view=rev

Log:
Patch from Matt McCutchen 2: Fix for bug #567935 (Don't use an uninitialized variable).

Modified:
   trunk/mail/ChangeLog
   trunk/mail/em-folder-tree.c

Modified: trunk/mail/em-folder-tree.c
==============================================================================
--- trunk/mail/em-folder-tree.c	(original)
+++ trunk/mail/em-folder-tree.c	Mon Feb  2 04:04:19 2009
@@ -2099,16 +2099,16 @@
 {
 	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[] = {



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