summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2009-08-01 15:23:06 +0000
committerThomas Martitz <kugel@rockbox.org>2009-08-01 15:23:06 +0000
commit5c882be6081391599158afb03be11ec18b2fc112 (patch)
treeba950bc3f946468f3d1d03f1e08dcb734ed9feb8
parentbcd510db66838e8df0df05980b237f0e6b2adad7 (diff)
downloadrockbox-5c882be6081391599158afb03be11ec18b2fc112.tar.gz
rockbox-5c882be6081391599158afb03be11ec18b2fc112.zip
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
-rw-r--r--apps/tree.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/tree.c b/apps/tree.c
index 2c6c85f2a8..71ec83ed1a 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -956,7 +956,9 @@ int rockbox_browse(const char *root, int dirfilter)
956 global_settings.fmr_file); 956 global_settings.fmr_file);
957 } 957 }
958#endif 958#endif
959 959 else /* reset current[] */
960 current[0] = '\0';
961
960 /* If we've found a file to center on, do it */ 962 /* If we've found a file to center on, do it */
961 if (current[0] == '/') 963 if (current[0] == '/')
962 { 964 {