mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-09 13:39:47 -05:00
[filescanner] Fix building directory structure with trailing '/' (second
attempt)
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user