1
0
Fork 0
forked from len0rd/rockbox

Move the array to where it belongs

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27557 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Thomas Martitz 2010-07-25 16:57:36 +00:00
parent e513f69d25
commit c853097c2a

View file

@ -921,7 +921,6 @@ int rockbox_browse(const char *root, int dirfilter)
if (dirfilter >= NUM_FILTER_MODES) if (dirfilter >= NUM_FILTER_MODES)
{ {
static struct tree_context backup; static struct tree_context backup;
char current[MAX_PATH];
int last_context; int last_context;
const char *dir, *ext, *setting = NULL; 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 we've found a file to center on, do it */
if (setting) if (setting)
{ {
char current[MAX_PATH];
/* if setting != NULL, ext and dir are not used uninitialized */ /* if setting != NULL, ext and dir are not used uninitialized */
snprintf(current, sizeof(current), "%s/%s.%s", dir, setting, ext); snprintf(current, sizeof(current), "%s/%s.%s", dir, setting, ext);
set_current_file(current); set_current_file(current);