From f01f363a70ccc3a4f6ad62fd4fb58cca99d16457 Mon Sep 17 00:00:00 2001 From: Mike Kestner Date: Thu, 11 Sep 2003 20:58:53 +0000 Subject: move scnt and gcnt initialization outside the for loop [43156]. 2003-09-11 Mike Kestner * e-table-sort-info.c (e_table_sort_info_load_from_node): move scnt and gcnt initialization outside the for loop [43156]. svn path=/trunk/; revision=22532 --- widgets/table/e-table-sort-info.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'widgets') diff --git a/widgets/table/e-table-sort-info.c b/widgets/table/e-table-sort-info.c index c25acf6d0a..ba8f9050ab 100644 --- a/widgets/table/e-table-sort-info.c +++ b/widgets/table/e-table-sort-info.c @@ -380,10 +380,10 @@ e_table_sort_info_load_from_node (ETableSortInfo *info, e_table_sort_info_sorting_set_nth(info, i++, column); } } else { + gint gcnt = 0; + gint scnt = 0; for (grouping = node->children; grouping; grouping = grouping->next) { ETableSortColumn column; - gint gcnt = 0; - gint scnt = 0; if (grouping->type != XML_ELEMENT_NODE) continue; -- cgit v1.2.3