diff options
author | Michael Natterer <mitch@imendio.com> | 2006-03-08 15:37:07 +0000 |
---|---|---|
committer | Michael Natterer <mitch@src.gnome.org> | 2006-03-08 15:37:07 +0000 |
commit | a75c6faf03f22800dc88f421e6b901dd5e1079c5 (patch) | |
tree | b7e52755376a66e50fa7161a9733b31f38f7bc00 /tests/prop-editor.c | |
parent | 3961acfb68d116e134f7697f27c162899be6d794 (diff) | |
download | gtk+-a75c6faf03f22800dc88f421e6b901dd5e1079c5.tar.gz |
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().
Diffstat (limited to 'tests/prop-editor.c')
-rw-r--r-- | tests/prop-editor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/prop-editor.c b/tests/prop-editor.c index 76d5a0f439..eefd00420e 100644 --- a/tests/prop-editor.c +++ b/tests/prop-editor.c @@ -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; |