From c0f2024a2eebaa156f3c9ddf55f58e00ce5cee8e Mon Sep 17 00:00:00 2001
From: Max Kellermann <max@duempel.org>
Date: Thu, 3 Jan 2013 10:01:48 +0100
Subject: exclude: make variables more local

---
 src/exclude.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/src/exclude.c b/src/exclude.c
index 438039d30..fecc859cb 100644
--- a/src/exclude.c
+++ b/src/exclude.c
@@ -34,13 +34,9 @@
 GSList *
 exclude_list_load(const char *path_fs)
 {
-	FILE *file;
-	char line[1024];
-	GSList *list = NULL;
-
 	assert(path_fs != NULL);
 
-	file = fopen(path_fs, "r");
+	FILE *file = fopen(path_fs, "r");
 	if (file == NULL) {
 		if (errno != ENOENT) {
 			char *path_utf8 = fs_charset_to_utf8(path_fs);
@@ -52,6 +48,8 @@ exclude_list_load(const char *path_fs)
 		return NULL;
 	}
 
+	GSList *list = NULL;
+	char line[1024];
 	while (fgets(line, sizeof(line), file) != NULL) {
 		char *p = strchr(line, '#');
 		if (p != NULL)
-- 
cgit v1.2.3