forked from len0rd/rockbox
Simplify code...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10156 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
f9b20914e6
commit
7bbf53eae5
1 changed files with 2 additions and 2 deletions
|
@ -49,10 +49,10 @@ static int strip_volume(const char* name, char* namecopy)
|
|||
int volume = 0;
|
||||
const char *temp = name;
|
||||
|
||||
while (*temp && strchr("/", *temp)) /* skip all leading slashes */
|
||||
while (*temp == '/') /* skip all leading slashes */
|
||||
++temp;
|
||||
|
||||
if (*temp && !strncmp(temp, vol_names, VOL_ENUM_POS))
|
||||
if (*temp && !strncmp(temp, vol_names, VOL_ENUM_POS))
|
||||
{
|
||||
temp += VOL_ENUM_POS; /* behind special name */
|
||||
volume = atoi(temp); /* number is following */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue