[gobject-introspection] Keep valgrind happy in a test
- From: Tomeu Vizoso <tomeuv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] Keep valgrind happy in a test
- Date: Tue, 27 Apr 2010 13:15:16 +0000 (UTC)
commit f4e796c7391d23fd9fb1a8fd1b7609516b9a42af
Author: Tomeu Vizoso <tomeu sugarlabs org>
Date: Tue Apr 27 15:15:10 2010 +0200
Keep valgrind happy in a test
gir/gimarshallingtests.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gir/gimarshallingtests.c b/gir/gimarshallingtests.c
index 839b7b3..c48a430 100644
--- a/gir/gimarshallingtests.c
+++ b/gir/gimarshallingtests.c
@@ -2795,7 +2795,7 @@ g_i_marshalling_tests_object_method_with_default_implementation (GIMarshallingTe
static void
g_i_marshalling_tests_object_real_method_with_default_implementation (GIMarshallingTestsObject *self, gint8 in)
{
- GValue val;
+ GValue val = {0, };
g_value_init (&val, G_TYPE_INT);
g_value_set_int (&val, in);
g_object_set_property (G_OBJECT (self), "int", &val);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]