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:
parent
e513f69d25
commit
c853097c2a
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue