[widgets/progressbar] Initialize unit value to 0
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
214b5a4a31
commit
3ea69238ae
|
@ -125,7 +125,7 @@ progressbar_draw(Widget *widget, DrawCtx *ctx, int offset,
|
|||
{
|
||||
/* pb_.. values points to the widget inside a potential border */
|
||||
int i, percent_ticks, pb_x, pb_y, pb_height, pb_width, pb_progress, pb_offset;
|
||||
int unit; /* tick + gap */
|
||||
int unit = 0; /* tick + gap */
|
||||
int border_offset;
|
||||
area_t rectangle, pattern_rect;
|
||||
|
||||
|
|
Loading…
Reference in New Issue