initialize a variable that gcc warns about

https://bugzilla.gnome.org/show_bug.cgi?id=613749
This commit is contained in:
Dan Winship 2010-03-26 09:26:17 -04:00
parent 3f5bb8f98d
commit 4aa2473d18

View File

@ -562,7 +562,8 @@ compute_shrinks (StBoxLayout *self,
StBoxLayoutPrivate *priv = self->priv; StBoxLayoutPrivate *priv = self->priv;
int n_children = g_list_length (priv->children); int n_children = g_list_length (priv->children);
BoxChildShrink *shrinks = g_new0 (BoxChildShrink, n_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; int n_shrink_children;
GList *l; GList *l;
int i; int i;