diff --git a/src/st/st-box-layout.c b/src/st/st-box-layout.c index efac52248..b6901e4d6 100644 --- a/src/st/st-box-layout.c +++ b/src/st/st-box-layout.c @@ -608,7 +608,7 @@ compute_shrinks (StBoxLayout *self, /* Find the amount of possible shrink for each child */ int n_visible_children = 0; - for (l = priv->children; l; l = l->next, i++) + for (l = priv->children, i = 0; l; l = l->next, i++) { gfloat child_min, child_nat;