Commit 83f37da1 authored by Owen W. Taylor's avatar Owen W. Taylor
Browse files

[StBoxLayout] initialize variable

Fix a missing initialization of 'i' when iterating over children.
parent c2706add
......@@ -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;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment