[gnome-shell/shell-toolkit] [StBoxLayout] initialize variable
- From: Owen Taylor <otaylor src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-shell/shell-toolkit] [StBoxLayout] initialize variable
- Date: Wed, 30 Sep 2009 18:28:33 +0000 (UTC)
commit 83f37da1c193ad7b9bae7562023c86ac6d52e882
Author: Owen W. Taylor <otaylor fishsoup net>
Date: Wed Sep 30 12:01:53 2009 -0400
[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
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 efac522..b6901e4 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]