[filescanner] Fix building directory structure with trailing '/' (second

attempt)
This commit is contained in:
chme 2016-08-01 21:27:05 +02:00
parent cbc3323111
commit 388c5f4311
1 changed files with 1 additions and 1 deletions

View File

@ -1092,7 +1092,7 @@ process_parent_directories(char *path)
ptr = path + 1;
while (ptr && (ptr = strchr(ptr, '/')))
{
if ((ptr - path) > 0)
if (strlen(ptr) <= 1)
{
// Do not process trailing '/'
break;