summaryrefslogtreecommitdiffstats
path: root/apps/tree.c
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2010-07-25 16:47:47 +0000
committerThomas Martitz <kugel@rockbox.org>2010-07-25 16:47:47 +0000
commite513f69d25161dfabc8bc915ffdb80ba1b350947 (patch)
tree5f3ded6b08d2b74f96ae460260a7c36fdc9636e1 /apps/tree.c
parent9ecfcb06abeec452d403b5b2285614614c6a6662 (diff)
downloadrockbox-e513f69d25161dfabc8bc915ffdb80ba1b350947.tar.gz
rockbox-e513f69d25161dfabc8bc915ffdb80ba1b350947.zip
Add default case back to silence gcc false positive abount ext and dir being used uninitialized.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27556 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/tree.c')
-rw-r--r--apps/tree.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/tree.c b/apps/tree.c
index c248631744..a18a29e09c 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -979,11 +979,15 @@ int rockbox_browse(const char *root, int dirfilter)
setting = global_settings.fmr_file;
break;
#endif
+ default:
+ dir = ext = setting = NULL;
+ break;
}
/* If we've found a file to center on, do it */
if (setting)
{
+ /* if setting != NULL, ext and dir are not used uninitialized */
snprintf(current, sizeof(current), "%s/%s.%s", dir, setting, ext);
set_current_file(current);
/* set_current_file changes dirlevel, change it back */