diff options
author | Eric Wong <normalperson@yhbt.net> | 2008-10-11 21:09:08 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-10-12 05:27:32 -0700 |
commit | 8636b3185268e8de90c566d472c52b814111b8c3 (patch) | |
tree | cd8bb7b5444f058d3a0d153a9b3cc2c57cb0cbdb /src/update.c | |
parent | e28fb29349a811f0f306e9ac4bedf6013417d043 (diff) | |
download | mpd-8636b3185268e8de90c566d472c52b814111b8c3.tar.gz mpd-8636b3185268e8de90c566d472c52b814111b8c3.tar.xz mpd-8636b3185268e8de90c566d472c52b814111b8c3.zip |
Avoid calling isRootDirectory when we have a directory object
There is only one music_root and we can just compare
addresses.
Diffstat (limited to 'src/update.c')
-rw-r--r-- | src/update.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)); |