[PATCH 2/2] Fix compile error related to uninitialized value
Matt Lavin
matt.lavin at gmail.com
Wed Oct 21 19:57:14 EDT 2009
---
src/import-export/gnc-import-format-gnome.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/import-export/gnc-import-format-gnome.c b/src/import-export/gnc-import-format-gnome.c
index 02101a2..8ea2b1f 100644
--- a/src/import-export/gnc-import-format-gnome.c
+++ b/src/import-export/gnc-import-format-gnome.c
@@ -64,17 +64,16 @@ gnc_ifg_option_changed (GtkComboBox *combo, GNCImportProvFormatGnome *prov_f)
{
GtkTreeModel *model;
GtkTreeIter iter;
- gint value;
+ GncImportFormat value;
g_return_if_fail(GTK_IS_COMBO_BOX(combo));
- g_return_if_fail(value);
model = gtk_combo_box_get_model(combo);
if (!gtk_combo_box_get_active_iter(combo, &iter))
return;
gtk_tree_model_get(model, &iter, IFG_COL_VALUE, &value, -1);
- prov_f->choice = (GncImportFormat)value;
+ prov_f->choice = value;
}
#define ADD_MENU_ITEM(str,op) { \
--
1.6.3.3
--=-yPAZtZFJwgiBBeGloBgZ--
More information about the gnucash-devel
mailing list