mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -05:00
Remove some shadowed variables identified by -Wshadow
there are plenty more but these are the low hanging fruit Change-Id: I86d9f4f56e8cd9b381d1bf6a6679cd58c6a4004d
This commit is contained in:
parent
f94a14b859
commit
034b6d5bfb
9 changed files with 12 additions and 15 deletions
|
|
@ -208,7 +208,7 @@ static struct folder* load_folder(struct folder* parent, char *folder)
|
|||
if ((dn[0] == '.') && (dn[1] == '\0' || (dn[1] == '.' && dn[2] == '\0')))
|
||||
continue;
|
||||
/* copy entry name to end of buffer, save pointer */
|
||||
int len = strlen((char *)entry->d_name);
|
||||
len = strlen((char *)entry->d_name);
|
||||
char *name = folder_alloc_from_end(len+1); /*for NULL*/
|
||||
if (name == NULL)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue