From: Dana Jansens Date: Mon, 17 Mar 2003 02:10:24 +0000 (+0000) Subject: decalre variables before code! X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=2870457bf55ca2b755f73b67626532e02d9473b8;p=chaz%2Fopenbox decalre variables before code! --- 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;