aboutsummaryrefslogtreecommitdiffstats
path: root/src/command.c
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2008-10-11 21:09:08 -0700
committerEric Wong <normalperson@yhbt.net>2008-10-12 05:27:32 -0700
commit8636b3185268e8de90c566d472c52b814111b8c3 (patch)
treecd8bb7b5444f058d3a0d153a9b3cc2c57cb0cbdb /src/command.c
parente28fb29349a811f0f306e9ac4bedf6013417d043 (diff)
downloadmpd-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/command.c')
-rw-r--r--src/command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/command.c b/src/command.c
index 518bf5f0d..f583f82a1 100644
--- a/src/command.c
+++ b/src/command.c
@@ -571,7 +571,7 @@ static int handleLsInfo(int fd, mpd_unused int *permission,
directory_print(fd, dir);
- if (isRootDirectory(path))
+ if (dir == &music_root)
return lsPlaylists(fd, path);
return 0;