[gnumeric] fix #665208



commit c139ada07a0aeeeae67220262ccce7d52540f15f
Author: Andreas J Guelzow <aguelzow pyrshep ca>
Date:   Wed Nov 30 10:25:28 2011 -0700

    fix #665208
    
    2011-11-28  Andreas J. Guelzow <aguelzow pyrshep ca>
    
    	* gnumeric-expr-entry.c (cb_icon_clicked): initialize GVALUE before
    	calling g_value_init

 src/widgets/ChangeLog             |    5 +++++
 src/widgets/gnumeric-expr-entry.c |    3 ++-
 2 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/src/widgets/ChangeLog b/src/widgets/ChangeLog
index 0feadfb..1b41537 100644
--- a/src/widgets/ChangeLog
+++ b/src/widgets/ChangeLog
@@ -1,5 +1,10 @@
 2011-11-28  Andreas J. Guelzow <aguelzow pyrshep ca>
 
+	* gnumeric-expr-entry.c (cb_icon_clicked): initialize GVALUE before
+	calling g_value_init
+
+2011-11-28  Andreas J. Guelzow <aguelzow pyrshep ca>
+
 	* gnumeric-expr-entry.c (gnm_expr_entry_colour_ranges): add arg and only
 	create cursor if required
 	(gee_scan_for_range): ensure to use the same colour for duplicate ranges
diff --git a/src/widgets/gnumeric-expr-entry.c b/src/widgets/gnumeric-expr-entry.c
index 6778d78..1d22023 100644
--- a/src/widgets/gnumeric-expr-entry.c
+++ b/src/widgets/gnumeric-expr-entry.c
@@ -301,7 +301,8 @@ cb_icon_clicked (GtkButton *icon,
 				container_props = g_value_array_new (n);
 
 				for (ui = 0; ui < n; ui++) {
-					GValue value;
+					/* In glib 2.30 we could be using G_VALUE_INIT */
+					GValue value = { 0, { { 0 } } };
 					g_value_init (&value, G_PARAM_SPEC_VALUE_TYPE (container_props_pspec[ui]));
 
 					gtk_container_child_get_property (GTK_CONTAINER (old_entry_parent), GTK_WIDGET (entry),



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]