From 54154e8298b883b2d419952e9b1f564f0013b8bc Mon Sep 17 00:00:00 2001 From: o9000 Date: Tue, 20 Jan 2015 23:45:25 +0000 Subject: [PATCH] util: Initialize color in all cases git-svn-id: http://tint2.googlecode.com/svn/trunk@658 121b4492-b84c-0410-8b4c-0d4edfb3f3cc --- src/util/common.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/util/common.c b/src/util/common.c index d73edbb..3675605 100644 --- a/src/util/common.c +++ b/src/util/common.c @@ -140,6 +140,7 @@ int hex_to_rgb (char *hex, int *r, int *g, int *b) void get_color (char *hex, double *rgb) { int r, g, b; + r = g = b = 0; hex_to_rgb (hex, &r, &g, &b); rgb[0] = (r / 255.0);