[gtk+] cssvalue: Move value initialization
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] cssvalue: Move value initialization
- Date: Tue, 15 Jan 2013 14:34:18 +0000 (UTC)
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]