From fea67eb0dc0f48373a9a0515d3017a4a59f03923 Mon Sep 17 00:00:00 2001 From: Harish Krishnaswamy Date: Mon, 4 Dec 2006 11:19:28 +0000 Subject: Fix read of uninitialized ESearchBarItems. Partially fixes #381642. 2006-12-04 Harish Krishnaswamy * e-filter-bar.c: (build_items): Fix read of uninitialized ESearchBarItems. Partially fixes #381642. svn path=/trunk/; revision=33042 --- widgets/misc/ChangeLog | 5 +++++ widgets/misc/e-filter-bar.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'widgets/misc') 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 + + * e-filter-bar.c: (build_items): Fix read of uninitialized + ESearchBarItems. Partially fixes #381642. + 2006-11-21 Harish Krishnaswamy * 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; -- cgit