mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-26 14:13:18 -05:00
[filescanner] Fix building directory structure with trailing '/' (second
attempt)
This commit is contained in:
parent
cbc3323111
commit
388c5f4311
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user