mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-27 23:55:57 -05:00
Merge pull request #280 from chme/scandirectories2
[filescanner] Fix building directory structure with trailing '/'
This commit is contained in:
commit
09e35abb83
@ -1092,7 +1092,7 @@ process_parent_directories(char *path)
|
|||||||
ptr = path + 1;
|
ptr = path + 1;
|
||||||
while (ptr && (ptr = strchr(ptr, '/')))
|
while (ptr && (ptr = strchr(ptr, '/')))
|
||||||
{
|
{
|
||||||
if ((ptr - path) > 0)
|
if (strlen(ptr) <= 1)
|
||||||
{
|
{
|
||||||
// Do not process trailing '/'
|
// Do not process trailing '/'
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user