[widgets/progressbar] Initialize unit value to 0

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-03-26 10:59:06 +01:00
parent 214b5a4a31
commit 3ea69238ae
1 changed files with 1 additions and 1 deletions

View File

@ -125,7 +125,7 @@ progressbar_draw(Widget *widget, DrawCtx *ctx, int offset,
{ {
/* pb_.. values points to the widget inside a potential border */ /* 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 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; int border_offset;
area_t rectangle, pattern_rect; area_t rectangle, pattern_rect;