aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;