From 4aa2473d1886e587458526a4a022d42c25c159e7 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Fri, 26 Mar 2010 09:26:17 -0400 Subject: [PATCH] initialize a variable that gcc warns about https://bugzilla.gnome.org/show_bug.cgi?id=613749 --- src/st/st-box-layout.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/st/st-box-layout.c b/src/st/st-box-layout.c index 16e9209df..b49611095 100644 --- a/src/st/st-box-layout.c +++ b/src/st/st-box-layout.c @@ -562,7 +562,8 @@ compute_shrinks (StBoxLayout *self, StBoxLayoutPrivate *priv = self->priv; int n_children = g_list_length (priv->children); BoxChildShrink *shrinks = g_new0 (BoxChildShrink, n_children); - gfloat shrink_so_far, base_shrink; + gfloat shrink_so_far; + gfloat base_shrink = 0; /* the "= 0" is just to make gcc happy */ int n_shrink_children; GList *l; int i;