forked from len0rd/rockbox
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
This commit is contained in:
parent
9ecfcb06ab
commit
e513f69d25
1 changed files with 4 additions and 0 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue