tmp_color can be uninitialized

This commit is contained in:
Julien Danjou 2008-01-27 19:10:15 +01:00
parent a0bef6d49e
commit 3d74f42446
1 changed files with 2 additions and 0 deletions

View File

@ -285,6 +285,8 @@ graph_new(Statusbar *statusbar, cfg_t *config)
d->current_max = p_new(float, d->data_items); d->current_max = p_new(float, d->data_items);
d->max = p_new(float, d->data_items); d->max = p_new(float, d->data_items);
tmp_color = globalconf.screens[statusbar->screen].colors_normal[ColFG];
for(i = 0; i < d->data_items; i++) for(i = 0; i < d->data_items; i++)
{ {
cfg = cfg_getnsec(config, "data", i); cfg = cfg_getnsec(config, "data", i);