From c1f0b59911fdc6096f070108d100ff14c2e25b29 Mon Sep 17 00:00:00 2001 From: Roman Kudiyarov Date: Wed, 4 Aug 2010 12:08:50 +0700 Subject: [PATCH] test: Fixed test-rotate for osx platfom There was a bug in clutter-shader-effect. We have to set to zero new object of type GValue before we can use it in g_value_init. --- clutter/clutter-shader-effect.c | 1 + 1 file changed, 1 insertion(+) diff --git a/clutter/clutter-shader-effect.c b/clutter/clutter-shader-effect.c index ce1ae57e4..bb1989766 100644 --- a/clutter/clutter-shader-effect.c +++ b/clutter/clutter-shader-effect.c @@ -514,6 +514,7 @@ shader_uniform_new (const gchar *name, retval->name = g_strdup (name); retval->type = G_VALUE_TYPE (value); retval->location = -1; + retval->value = (GValue){0}; g_value_init (&retval->value, retval->type); g_value_copy (value, &retval->value);