From 5c882be6081391599158afb03be11ec18b2fc112 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Sat, 1 Aug 2009 15:23:06 +0000 Subject: Fix FS#10478 - Used wrong directory in Browse theme files by explicitely setting current[] to '\0' in an else case. current[] was used unitialized, so browsing themes actually used current[] from a previous call to rockbox_browse() git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22094 a1c6a512-1295-4272-9138-f99709370657 --- apps/tree.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/tree.c b/apps/tree.c index 2c6c85f..71ec83e 100644 --- a/apps/tree.c +++ b/apps/tree.c @@ -956,7 +956,9 @@ int rockbox_browse(const char *root, int dirfilter) global_settings.fmr_file); } #endif - + else /* reset current[] */ + current[0] = '\0'; + /* If we've found a file to center on, do it */ if (current[0] == '/') { -- cgit v1.1