From 5f525839da5208f4f70ebf50f1a1abd61b15354f Mon Sep 17 00:00:00 2001 From: Chun-wei Fan Date: Mon, 27 Jun 2016 11:58:42 +0800 Subject: [PATCH] gtk/gtkstylecascade.c: Declare variables at beginning of block --- gtk/gtkstylecascade.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gtk/gtkstylecascade.c b/gtk/gtkstylecascade.c index 2c890f536d..7a8950b0b0 100644 --- a/gtk/gtkstylecascade.c +++ b/gtk/gtkstylecascade.c @@ -49,10 +49,11 @@ gtk_style_cascade_iter_next (GtkStyleCascade *cascade, for (cas = cascade, ix = 0; ix < iter->n_cascades; cas = cas->parent, ix++) { + GtkStyleProviderData *data; if (iter->cascade_index[ix] <= 0) continue; - GtkStyleProviderData *data = &g_array_index (cas->providers, + data = &g_array_index (cas->providers, GtkStyleProviderData, iter->cascade_index[ix] - 1); if (highest_priority_data == NULL || data->priority > highest_priority_data->priority)