zero-initialize the GValue before calling g_value_init().

2006-03-08  Michael Natterer  <mitch@imendio.com>

	* tests/prop-editor.c (unichar_changed): zero-initialize the
	GValue before calling g_value_init().
This commit is contained in:
Michael Natterer 2006-03-08 15:37:07 +00:00 committed by Michael Natterer
parent 3961acfb68
commit a75c6faf03
3 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2006-03-08 Michael Natterer <mitch@imendio.com>
* tests/prop-editor.c (unichar_changed): zero-initialize the
GValue before calling g_value_init().
2006-03-08 Michael Natterer <mitch@imendio.com>
* gtk/gtkentry.c (gtk_entry_adjust_scroll): make sure that the

View File

@ -1,3 +1,8 @@
2006-03-08 Michael Natterer <mitch@imendio.com>
* tests/prop-editor.c (unichar_changed): zero-initialize the
GValue before calling g_value_init().
2006-03-08 Michael Natterer <mitch@imendio.com>
* gtk/gtkentry.c (gtk_entry_adjust_scroll): make sure that the

View File

@ -486,7 +486,7 @@ unichar_changed (GObject *object, GParamSpec *pspec, gpointer data)
GtkEntry *entry = GTK_ENTRY (data);
gunichar new_val;
gunichar old_val = unichar_get_value (entry);
GValue val;
GValue val = { 0, };
gchar buf[7];
gint len;