mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-12 23:01:44 -05:00
[directories] Initialize root directories on db init
This commit is contained in:
@@ -1156,10 +1156,9 @@ process_parent_directories(char *path)
|
||||
char virtual_path[PATH_MAX];
|
||||
int ret;
|
||||
|
||||
// The root directoy ID
|
||||
dir_id = 1;
|
||||
dir_id = DIR_FILE;
|
||||
|
||||
ptr = path;
|
||||
ptr = path + 1;
|
||||
while (ptr && (ptr = strchr(ptr, '/')))
|
||||
{
|
||||
strncpy(buf, path, (ptr - path));
|
||||
|
||||
Reference in New Issue
Block a user