From 301e22121a3061d00df440a86b1f7041171f3667 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Tue, 15 Jan 2013 15:31:59 +0100 Subject: [PATCH] cssvalue: Move value initialization Makes it easier to track places where tha value is not initialized. --- gtk/gtkcsscolorvalue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkcsscolorvalue.c b/gtk/gtkcsscolorvalue.c index a30093e479..cc7d0d2a06 100644 --- a/gtk/gtkcsscolorvalue.c +++ b/gtk/gtkcsscolorvalue.c @@ -153,7 +153,6 @@ _gtk_css_color_value_resolve (GtkCssValue *color, dependencies = &unused; *dependencies = 0; - value = NULL; switch (color->type) { case COLOR_TYPE_LITERAL: @@ -265,6 +264,7 @@ _gtk_css_color_value_resolve (GtkCssValue *color, } break; default: + value = NULL; g_assert_not_reached (); }