From 2870457bf55ca2b755f73b67626532e02d9473b8 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 17 Mar 2003 02:10:24 +0000 Subject: [PATCH] decalre variables before code! --- render/color.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/render/color.c b/render/color.c index 83c2aa37..1f3892e5 100644 --- a/render/color.c +++ b/render/color.c @@ -14,10 +14,11 @@ void color_allocate_gc(color_rgb *in) color_rgb *color_parse(char *colorname) { + XColor xcol; + g_assert(colorname != NULL); // get rgb values from colorname - XColor xcol; xcol.red = 0; xcol.green = 0; xcol.blue = 0; -- 2.45.2