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:
Max Kellermann
2008-10-08 11:55:52 +02:00
parent e8413541f4
commit 22645abc10
3 changed files with 4 additions and 4 deletions

View File

@@ -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) {