aboutsummaryrefslogtreecommitdiffstats
path: root/src/command/FileCommands.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-02-03 23:09:25 +0100
committerMax Kellermann <max@duempel.org>2014-02-03 23:31:28 +0100
commitba675d6a55769a6e82a6efaa2f4a812a4eea2362 (patch)
tree3f253c86b1ec6190c748918bd53d9f28dde93c0a /src/command/FileCommands.cxx
parente4c5a4f61b39b2a813129809f48f539f383a4c5e (diff)
downloadmpd-ba675d6a55769a6e82a6efaa2f4a812a4eea2362.tar.gz
mpd-ba675d6a55769a6e82a6efaa2f4a812a4eea2362.tar.xz
mpd-ba675d6a55769a6e82a6efaa2f4a812a4eea2362.zip
FileCommands: use PathTraitsUTF8::IsAbsolute()
Diffstat (limited to 'src/command/FileCommands.cxx')
-rw-r--r--src/command/FileCommands.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/command/FileCommands.cxx b/src/command/FileCommands.cxx
index 0b0421c3e..cfd5e3926 100644
--- a/src/command/FileCommands.cxx
+++ b/src/command/FileCommands.cxx
@@ -125,7 +125,7 @@ handle_read_comments(Client &client, gcc_unused int argc, char *argv[])
return print_error(client, error);
} else if (uri_has_scheme(uri)) {
return read_stream_comments(client, uri);
- } else if (*uri != '/') {
+ } else if (!PathTraitsUTF8::IsAbsolute(uri)) {
#ifdef ENABLE_DATABASE
path_fs = map_uri_fs(uri);
if (path_fs.IsNull()) {