path.c: speling fix (I coulda sworn I fixed this before... in -ke)
git-svn-id: https://svn.musicpd.org/mpd/trunk@4904 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
parent
5a3f501fc8
commit
e1d1a703f1
@ -281,12 +281,12 @@ char *sanitizePathDup(char *path)
|
||||
|
||||
len = 0;
|
||||
|
||||
/* illeminate more than one '/' in a row, like "///" */
|
||||
/* eliminate more than one '/' in a row, like "///" */
|
||||
while (*path) {
|
||||
while (*path == '/')
|
||||
path++;
|
||||
if (*path == '.') {
|
||||
/* we dont want to have hidden directoires, or '.' or
|
||||
/* we don't want to have hidden directories, or '.' or
|
||||
".." in our path */
|
||||
free(ret);
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user