diff options
author | Suman Manjunath <msuman@src.gnome.org> | 2009-02-02 12:04:19 +0800 |
---|---|---|
committer | Suman Manjunath <msuman@src.gnome.org> | 2009-02-02 12:04:19 +0800 |
commit | d59c9315d8570ec7951f737442c57bff729f58ea (patch) | |
tree | 6253cca5669fd998b7810860e5269bd0b34dbc21 /mail/em-folder-tree.c | |
parent | 38c8ce1aac739a3e74448ff5ed7fa2e003a9cc28 (diff) | |
download | gsoc2013-evolution-d59c9315d8570ec7951f737442c57bff729f58ea.tar.gz gsoc2013-evolution-d59c9315d8570ec7951f737442c57bff729f58ea.tar.zst gsoc2013-evolution-d59c9315d8570ec7951f737442c57bff729f58ea.zip |
Patch from Matt McCutchen 2: Fix for bug #567935 (Don't use an uninitialized variable).
svn path=/trunk/; revision=37208
Diffstat (limited to 'mail/em-folder-tree.c')
-rw-r--r-- | mail/em-folder-tree.c | 6 |
1 files changed, 3 insertions, 3 deletions
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[] = { |