aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-08 21:29:30 +0100
committerMax Kellermann <max@duempel.org>2009-01-08 21:29:30 +0100
commit1c2f24dfc694d20baca35269aa251ee131f08864 (patch)
treebd6371c22e01595bf0591a40ff9e20b7a0537175
parentf0b865b4ca7373c99f8469d21ed0505872e53680 (diff)
downloadmpd-1c2f24dfc694d20baca35269aa251ee131f08864.tar.gz
mpd-1c2f24dfc694d20baca35269aa251ee131f08864.tar.xz
mpd-1c2f24dfc694d20baca35269aa251ee131f08864.zip
mapper: use directory_is_root() instead of isRootDirectory()
Diffstat (limited to '')
-rw-r--r--src/mapper.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mapper.c b/src/mapper.c
index 6583e1c54..2b3533a4d 100644
--- a/src/mapper.c
+++ b/src/mapper.c
@@ -109,11 +109,10 @@ map_uri_fs(const char *uri)
char *
map_directory_fs(const struct directory *directory)
{
- const char *dirname = directory_get_path(directory);
- if (isRootDirectory(dirname))
+ if (directory_is_root(directory))
return g_strdup(music_dir);
- return map_uri_fs(dirname);
+ return map_uri_fs(directory_get_path(directory));
}
char *