directory: fix update in root directory
Commit 0bfe7802 broke update for new files in the root directory,
because music_root->path was an empty string and not NULL. There were
some NULL tests missing. Change them to !isRootDirectory(path)
instead of path!=NULL.
This commit is contained in:
@@ -291,7 +291,7 @@ updateDirectory(struct directory *directory)
|
||||
if (!utf8)
|
||||
continue;
|
||||
|
||||
if (directory->path)
|
||||
if (!isRootDirectory(directory->path))
|
||||
utf8 = pfx_dir(path_max_tmp, utf8, strlen(utf8),
|
||||
dirname, strlen(dirname));
|
||||
if (was_empty) {
|
||||
|
||||
Reference in New Issue
Block a user