Commit e1d1a703 authored by Eric Wong's avatar Eric Wong

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
parent 5a3f501f
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment