[gimp] Initialize two GtkTreeIter
- From: Massimo Valentini <mvalentini src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Initialize two GtkTreeIter
- Date: Fri, 17 Jun 2011 17:43:13 +0000 (UTC)
commit c39ca0f74f2bb49b5dd843765b738b635e182065
Author: Massimo Valentini <mvalentini src gnome org>
Date: Fri Jun 17 19:02:08 2011 +0200
Initialize two GtkTreeIter
to avoid harmless, but annoying, valgrind warnings on x86_64
libgimpwidgets/gimpenumstore.c | 2 +-
libgimpwidgets/gimpintcombobox.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libgimpwidgets/gimpenumstore.c b/libgimpwidgets/gimpenumstore.c
index 9882888..07ff090 100644
--- a/libgimpwidgets/gimpenumstore.c
+++ b/libgimpwidgets/gimpenumstore.c
@@ -151,7 +151,7 @@ static void
gimp_enum_store_add_value (GtkListStore *store,
GEnumValue *value)
{
- GtkTreeIter iter;
+ GtkTreeIter iter = { 0, };
const gchar *desc;
desc = gimp_enum_value_get_desc (GIMP_ENUM_STORE (store)->enum_class, value);
diff --git a/libgimpwidgets/gimpintcombobox.c b/libgimpwidgets/gimpintcombobox.c
index eddf6ef..253b629 100644
--- a/libgimpwidgets/gimpintcombobox.c
+++ b/libgimpwidgets/gimpintcombobox.c
@@ -268,7 +268,7 @@ gimp_int_combo_box_new_valist (const gchar *first_label,
label;
label = va_arg (values, const gchar *), value = va_arg (values, gint))
{
- GtkTreeIter iter;
+ GtkTreeIter iter = { 0, };
gtk_list_store_append (store, &iter);
gtk_list_store_set (store, &iter,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]