[gtk+] cssvalue: Move value initialization



commit 301e22121a3061d00df440a86b1f7041171f3667
Author: Benjamin Otte <otte redhat com>
Date:   Tue Jan 15 15:31:59 2013 +0100

    cssvalue: Move value initialization
    
    Makes it easier to track places where tha value is not initialized.

 gtk/gtkcsscolorvalue.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkcsscolorvalue.c b/gtk/gtkcsscolorvalue.c
index a30093e..cc7d0d2 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 ();
     }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]