aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorSuman Manjunath <msuman@src.gnome.org>2009-02-02 12:04:19 +0800
committerSuman Manjunath <msuman@src.gnome.org>2009-02-02 12:04:19 +0800
commitd59c9315d8570ec7951f737442c57bff729f58ea (patch)
tree6253cca5669fd998b7810860e5269bd0b34dbc21 /mail
parent38c8ce1aac739a3e74448ff5ed7fa2e003a9cc28 (diff)
downloadgsoc2013-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')
-rw-r--r--mail/ChangeLog7
-rw-r--r--mail/em-folder-tree.c6
2 files changed, 10 insertions, 3 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 969d4a4550..1885c539e3 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,10 @@
+2009-02-02 Matt McCutchen 2 <matt@mattmccutchen.net>
+
+ ** Fix for bug #567935
+
+ * em-folder-tree.c (emft_popup_uvfolder): Don't use an uninitialized
+ variable.
+
2009-02-01 Matthew Barnes <mbarnes@redhat.com>
* em-event.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[] = {
git/cgit.cgi/freebsd-ports-graphics/commit/x11-wm?id=316cf6317eb621c4567d3b8e337fa9ba3097ea56'>${RM} already has -f.mat2016-10-212-2/+2 * - Add NO_ARCHamdmi32016-10-211-1/+4 * Update to 0.21.3gblach2016-10-132-4/+4 * Thank you Uffe for your past work on FreeBSD ports! Hope you'll find timebsam2016-10-101-1/+1 * - Fix LICENSEamdmi32016-09-281-12/+15 * - Update devel/efl to 1.18.1gblach2016-09-274-7/+20 * - drop maintainershipdinoex2016-09-261-1/+1 * GOOGLE_CODE has gone away.mat2016-09-143-1/+5 * Most commonly used build systems support silent builds, when theyamdmi32016-09-101-1/+0 * - Bump PORTREVISIONjgh2016-09-094-412/+48 * Add missing braces in polkit example rules.olivierd2016-08-231-2/+2 * x11-wm/jwm: Update to 2.3.6woodsb022016-08-233-4/+7 * - Add LICENSEamdmi32016-08-201-9/+7 * Update to version 1.12.0pawel2016-08-173-4/+6 * - Update to version 1.11.91pawel2016-08-062-10/+11 * - Pass maintainership to submitter [1]amdmi32016-07-261-7/+9 * Cleanup $() variables in ports Makefiles.mat2016-07-201-1/+1 * Remove expired ports without open PRs:rene2016-07-0528-513/+0 * Update 2.6.5 --> 2.6.6.cy2016-07-043-12/+14 * Reset ports maintained by horia@racoviceanu.com.rakuco2016-06-284-4/+4 * Register a textproc/p5-XML-Parser runtime dependency forcy2016-06-231-2/+3 * With the power of USES=dos2unix, get rid of most patches and filesmat2016-06-212-145/+145 * Bump PORTREVISION post commit r417036.woodsb022016-06-181-1/+1 * x11-wm/xfce4-session:woodsb022016-06-182-4/+16 * Update to 0.11.2olivierd2016-06-143-8/+9 * Update x11-wm/awesome to 3.5.9garga2016-06-122-4/+5 * Fix USE_GITHUB usage.mat2016-06-072-4/+5 * Update to 3.0.2zeising2016-06-075-73/+11 * Deprecate ports broken for more than 6 monthsantoine2016-06-047-0/+14 * - Clarify LICENSEamdmi32016-05-292-3/+3 * Remove NLS, DOCS, EXAMPLES and IPV6 from OPTIONS_DEFAULT, they are enabled by...amdmi32016-05-244-4/+4 * Convert tab after WWW: in pkg-descrs to single space as per PHBamdmi32016-05-24