From c853097c2a43ac25bf4ffc31b8bbca08735fed85 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Sun, 25 Jul 2010 16:57:36 +0000 Subject: Move the array to where it belongs git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27557 a1c6a512-1295-4272-9138-f99709370657 --- apps/tree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps') diff --git a/apps/tree.c b/apps/tree.c index a18a29e09c..d63ddd448c 100644 --- a/apps/tree.c +++ b/apps/tree.c @@ -921,7 +921,6 @@ int rockbox_browse(const char *root, int dirfilter) if (dirfilter >= NUM_FILTER_MODES) { static struct tree_context backup; - char current[MAX_PATH]; int last_context; const char *dir, *ext, *setting = NULL; @@ -987,6 +986,7 @@ int rockbox_browse(const char *root, int dirfilter) /* If we've found a file to center on, do it */ if (setting) { + char current[MAX_PATH]; /* if setting != NULL, ext and dir are not used uninitialized */ snprintf(current, sizeof(current), "%s/%s.%s", dir, setting, ext); set_current_file(current); -- cgit v1.2.3