1
0
Fork 0
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:
Jens Arnold 2006-06-30 05:43:08 +00:00
parent f9b20914e6
commit 7bbf53eae5

View file

@ -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 */