util: Initialize color in all cases

git-svn-id: http://tint2.googlecode.com/svn/trunk@658 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
o9000 2015-01-20 23:45:25 +00:00 committed by mrovi9000@gmail.com
parent 364d0cf703
commit 54154e8298

View file

@ -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);