[gtk+/parser] xxx: fix a compiler warning



commit 9869ce75c2d806762c93a27dd4da0c9b61bacfdf
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Wed May 18 13:43:13 2011 -0400

    xxx: fix a compiler warning

 gtk/gtkcssparser.c |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkcssparser.c b/gtk/gtkcssparser.c
index 0545595..c956fd5 100644
--- a/gtk/gtkcssparser.c
+++ b/gtk/gtkcssparser.c
@@ -775,9 +775,14 @@ _gtk_css_parser_read_symbolic_color (GtkCssParser *parser)
       name = _gtk_css_parser_try_name (parser, TRUE);
 
       if (name)
-        symbolic = gtk_symbolic_color_new_name (name);
+        {
+          symbolic = gtk_symbolic_color_new_name (name);
+        }
       else
-        _gtk_css_parser_error (parser, "'%s' is not a valid symbolic color name", name);
+        {
+          _gtk_css_parser_error (parser, "'%s' is not a valid symbolic color name", name);
+          symbolic = NULL;
+        }
 
       g_free (name);
       return symbolic;



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