diff options
author | Owen W. Taylor <otaylor@fishsoup.net> | 2009-09-30 12:01:53 -0400 |
---|---|---|
committer | Owen W. Taylor <otaylor@fishsoup.net> | 2009-09-30 14:28:18 -0400 |
commit | 83f37da1c193ad7b9bae7562023c86ac6d52e882 (patch) | |
tree | d711908cbb34cee60445a763cb7eb9d62a7b1e7b | |
parent | c2706add36e092c69861c7ad9e3b5d053483ad46 (diff) | |
download | gnome-shell-83f37da1c193ad7b9bae7562023c86ac6d52e882.tar.gz |
[StBoxLayout] initialize variableshell-toolkit
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
-rw-r--r-- | src/st/st-box-layout.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |