mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
[StBoxLayout] initialize variable
Fix a missing initialization of 'i' when iterating over children. https://bugzilla.gnome.org/show_bug.cgi?id=595995 http://bugzilla.moblin.org/show_bug.cgi?id=6311
This commit is contained in:
parent
c2706add36
commit
83f37da1c1
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue