mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 10:07:38 -04:00
[coverity] folder_select.c find_from_filename() guard against NULL
its pretty doubtful you wouldn't find a slash in a folder path Change-Id: Ibf2069f37c235716d4d90aec6d68410a93c2bdc6
This commit is contained in:
parent
c6473f4e7f
commit
f9b15d951c
1 changed files with 1 additions and 1 deletions
|
@ -482,7 +482,7 @@ static struct child* find_from_filename(const char* filename, struct folder *roo
|
|||
cascade:
|
||||
/* filename == XXX/YYY. cascade down */
|
||||
child_set_state_expand(this, root);
|
||||
while (slash[0] == '/') slash++; /* eat slashes */
|
||||
while (slash && slash[0] == '/') slash++; /* eat slashes */
|
||||
return find_from_filename(slash, this->folder);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue