aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc
diff options
context:
space:
mode:
authorHarish Krishnaswamy <kharish@novell.com>2006-12-04 19:19:28 +0800
committerHarish Krishnaswamy <kharish@src.gnome.org>2006-12-04 19:19:28 +0800
commitfea67eb0dc0f48373a9a0515d3017a4a59f03923 (patch)
treef002b8bf48cbd0fb3a8fc0dc40cbaaeb35cf7c54 /widgets/misc
parent16be45ddfa1ac1582ebb5b00b0e1b612b5d3bb44 (diff)
downloadgsoc2013-evolution-fea67eb0dc0f48373a9a0515d3017a4a59f03923.tar.gz
gsoc2013-evolution-fea67eb0dc0f48373a9a0515d3017a4a59f03923.tar.zst
gsoc2013-evolution-fea67eb0dc0f48373a9a0515d3017a4a59f03923.zip
Fix read of uninitialized ESearchBarItems. Partially fixes #381642.
2006-12-04 Harish Krishnaswamy <kharish@novell.com> * e-filter-bar.c: (build_items): Fix read of uninitialized ESearchBarItems. Partially fixes #381642. svn path=/trunk/; revision=33042
Diffstat (limited to 'widgets/misc')
-rw-r--r--widgets/misc/ChangeLog5
-rw-r--r--widgets/misc/e-filter-bar.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/widgets/misc/ChangeLog b/widgets/misc/ChangeLog
index 6cd35999de..9d52ca2f87 100644
--- a/widgets/misc/ChangeLog
+++ b/widgets/misc/ChangeLog
@@ -1,3 +1,8 @@
+2006-12-04 Harish Krishnaswamy <kharish@novell.com>
+
+ * e-filter-bar.c: (build_items): Fix read of uninitialized
+ ESearchBarItems. Partially fixes #381642.
+
2006-11-21 Harish Krishnaswamy <kharish@novell.com>
* e-filter-bar.c: (e_filter_bar_new): type should be
diff --git a/widgets/misc/e-filter-bar.c b/widgets/misc/e-filter-bar.c
index a12f0219ec..c80f551d1e 100644
--- a/widgets/misc/e-filter-bar.c
+++ b/widgets/misc/e-filter-bar.c
@@ -351,7 +351,7 @@ build_items (ESearchBar *esb, ESearchBarItem *items, int type, int *start, GPtrA
EFilterBar *efb = (EFilterBar *)esb;
int id = 0, i;
GArray *menu = g_array_new (FALSE, FALSE, sizeof (ESearchBarItem));
- ESearchBarItem item;
+ ESearchBarItem item = { NULL, -1, 0 };
char *source;
GSList *gtksux = NULL;
int num;
@@ -365,7 +365,7 @@ build_items (ESearchBar *esb, ESearchBarItem *items, int type, int *start, GPtrA
/* find a unique starting point for the id's of our items */
for (i = 0; items[i].id != -1; i++) {
- ESearchBarItem dup_item;
+ ESearchBarItem dup_item = { NULL, -1, 0 };
if (items[i].id >= id)
id = items[i].id + 1;