diff options
author | Thomas Martitz <kugel@rockbox.org> | 2010-07-25 16:47:47 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2010-07-25 16:47:47 +0000 |
commit | e513f69d25161dfabc8bc915ffdb80ba1b350947 (patch) | |
tree | 5f3ded6b08d2b74f96ae460260a7c36fdc9636e1 /apps/tree.c | |
parent | 9ecfcb06abeec452d403b5b2285614614c6a6662 (diff) | |
download | rockbox-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.c | 4 |
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) | |||
979 | setting = global_settings.fmr_file; | 979 | setting = global_settings.fmr_file; |
980 | break; | 980 | break; |
981 | #endif | 981 | #endif |
982 | default: | ||
983 | dir = ext = setting = NULL; | ||
984 | break; | ||
982 | } | 985 | } |
983 | 986 | ||
984 | /* If we've found a file to center on, do it */ | 987 | /* If we've found a file to center on, do it */ |
985 | if (setting) | 988 | if (setting) |
986 | { | 989 | { |
990 | /* if setting != NULL, ext and dir are not used uninitialized */ | ||
987 | snprintf(current, sizeof(current), "%s/%s.%s", dir, setting, ext); | 991 | snprintf(current, sizeof(current), "%s/%s.%s", dir, setting, ext); |
988 | set_current_file(current); | 992 | set_current_file(current); |
989 | /* set_current_file changes dirlevel, change it back */ | 993 | /* set_current_file changes dirlevel, change it back */ |