From 8636b3185268e8de90c566d472c52b814111b8c3 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 11 Oct 2008 21:09:08 -0700 Subject: Avoid calling isRootDirectory when we have a directory object There is only one music_root and we can just compare addresses. --- src/update.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/update.c') diff --git a/src/update.c b/src/update.c index 3f6fa15ed..7c2a7570a 100644 --- a/src/update.c +++ b/src/update.c @@ -278,7 +278,7 @@ static int updateDirectory(struct directory *dir, const struct stat *st) if (!utf8) continue; - if (!isRootDirectory(dir->path)) + if (dir != &music_root) utf8 = pfx_dir(path_max_tmp, utf8, strlen(utf8), dirname, strlen(dirname)); -- cgit v1.2.3