summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2010-07-25 16:57:36 +0000
committerThomas Martitz <kugel@rockbox.org>2010-07-25 16:57:36 +0000
commitc853097c2a43ac25bf4ffc31b8bbca08735fed85 (patch)
treed6e757c588511dfe97dde0bdac69e8cb17f1909b /apps
parente513f69d25161dfabc8bc915ffdb80ba1b350947 (diff)
downloadrockbox-c853097c2a43ac25bf4ffc31b8bbca08735fed85.tar.gz
rockbox-c853097c2a43ac25bf4ffc31b8bbca08735fed85.zip
Move the array to where it belongs
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27557 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/tree.c2
1 files changed, 1 insertions, 1 deletions
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)
921 if (dirfilter >= NUM_FILTER_MODES) 921 if (dirfilter >= NUM_FILTER_MODES)
922 { 922 {
923 static struct tree_context backup; 923 static struct tree_context backup;
924 char current[MAX_PATH];
925 int last_context; 924 int last_context;
926 const char *dir, *ext, *setting = NULL; 925 const char *dir, *ext, *setting = NULL;
927 926
@@ -987,6 +986,7 @@ int rockbox_browse(const char *root, int dirfilter)
987 /* If we've found a file to center on, do it */ 986 /* If we've found a file to center on, do it */
988 if (setting) 987 if (setting)
989 { 988 {
989 char current[MAX_PATH];
990 /* if setting != NULL, ext and dir are not used uninitialized */ 990 /* if setting != NULL, ext and dir are not used uninitialized */
991 snprintf(current, sizeof(current), "%s/%s.%s", dir, setting, ext); 991 snprintf(current, sizeof(current), "%s/%s.%s", dir, setting, ext);
992 set_current_file(current); 992 set_current_file(current);