diff options
Diffstat (limited to 'apps/tree.c')
-rw-r--r-- | apps/tree.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/tree.c b/apps/tree.c index ed8e4d20bd..c2ec4ca3ec 100644 --- a/apps/tree.c +++ b/apps/tree.c | |||
@@ -988,9 +988,10 @@ int rockbox_browse(const char *root, int dirfilter) | |||
988 | /* If we've found a file to center on, do it */ | 988 | /* If we've found a file to center on, do it */ |
989 | if (setting) | 989 | if (setting) |
990 | { | 990 | { |
991 | char current[MAX_PATH]; | 991 | char current[MAX_PATH], _dir[MAX_PATH]; |
992 | /* if setting != NULL, ext and dir are not used uninitialized */ | 992 | /* if setting != NULL, ext and dir are not used uninitialized */ |
993 | snprintf(current, sizeof(current), "%s/%s.%s", dir, setting, ext); | 993 | snprintf(current, sizeof(current), "%s/%s.%s", |
994 | get_user_file_path(dir, 0, _dir, sizeof(_dir)), setting, ext); | ||
994 | set_current_file(current); | 995 | set_current_file(current); |
995 | /* set_current_file changes dirlevel, change it back */ | 996 | /* set_current_file changes dirlevel, change it back */ |
996 | tc.dirlevel = 0; | 997 | tc.dirlevel = 0; |