summaryrefslogtreecommitdiffstats
path: root/apps/tree.c
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/tree.c
parente513f69d25161dfabc8bc915ffdb80ba1b350947 (diff)
downloadrockbox-c853097c2a43ac25bf4ffc31b8bbca08735fed85.tar.gz
rockbox-c853097c2a43ac25bf4ffc31b8bbca08735fed85.tar.bz2
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/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)
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);