changeset 956:d7cb8d5714d1

Move declarations at the beginning of blocks.
author zas_
date Mon, 28 Jul 2008 18:35:19 +0000
parents ffbc9195f47f
children 36a48d09daa8
files src/filedata.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/filedata.c	Mon Jul 28 18:07:42 2008 +0000
+++ b/src/filedata.c	Mon Jul 28 18:35:19 2008 +0000
@@ -1759,6 +1759,7 @@
 
 gint file_data_sc_verify_ci_list(GList *list, gchar **desc)
 {
+	GList *work;
 	gint all_errors = 0;
 	gint common_errors = ~0; 
 	gint num;
@@ -1769,7 +1770,7 @@
 	
 	num = g_list_length(list);
 	errors = g_new(int, num);
-	GList *work = list;
+	work = list;
 	i = 0;
 	while (work)
 		{
@@ -1790,6 +1791,7 @@
 	
 	if (desc && all_errors)
 		{
+		GList *work;
 		GString *result = g_string_new("");
 		
 		if (common_errors)
@@ -1800,7 +1802,7 @@
 			g_free(str);
 			}
 		
-		GList *work = list;
+		work = list;
 		i = 0;
 		while (work)
 			{