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:
parent
364d0cf703
commit
54154e8298
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue