From 1f8247bb6251d66b935d0fa468a899dc5cbe1a54 Mon Sep 17 00:00:00 2001 From: kugel Date: Sat, 1 Aug 2009 15:23:06 +0000 Subject: [PATCH] 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 2c6c85f2a..71ec83ed1 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] == '/') { -- 2.11.4.GIT