summaryrefslogtreecommitdiff
path: root/apps/tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/tree.c')
-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);