From a110c542bd7a16625f03c97e2fefa3be8da50c85 Mon Sep 17 00:00:00 2001 From: Pablo Barciela Date: Thu, 2 May 2019 01:09:20 +0200 Subject: libcaja-private: reduce the scope of some variables --- libcaja-private/caja-keep-last-vertical-box.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libcaja-private/caja-keep-last-vertical-box.c') diff --git a/libcaja-private/caja-keep-last-vertical-box.c b/libcaja-private/caja-keep-last-vertical-box.c index b158c81a..65b6541d 100644 --- a/libcaja-private/caja-keep-last-vertical-box.c +++ b/libcaja-private/caja-keep-last-vertical-box.c @@ -89,7 +89,6 @@ static void caja_keep_last_vertical_box_size_allocate (GtkWidget *widget, GtkAllocation *allocation) { - GtkWidget *last_child, *child; GList *children, *l; GtkAllocation last_child_allocation, child_allocation, tiny_allocation; @@ -103,6 +102,8 @@ caja_keep_last_vertical_box_size_allocate (GtkWidget *widget, if (l != NULL) { + GtkWidget *last_child; + last_child = l->data; l = l->prev; @@ -114,6 +115,7 @@ caja_keep_last_vertical_box_size_allocate (GtkWidget *widget, if (last_child_allocation.y + last_child_allocation.height > allocation->y + allocation->height) { + GtkWidget *child = NULL; while (l != NULL) { -- cgit v1.2.1