diff options
author | Max Kellermann <max@duempel.org> | 2014-02-03 23:09:25 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-02-03 23:31:28 +0100 |
commit | ba675d6a55769a6e82a6efaa2f4a812a4eea2362 (patch) | |
tree | 3f253c86b1ec6190c748918bd53d9f28dde93c0a /src | |
parent | e4c5a4f61b39b2a813129809f48f539f383a4c5e (diff) | |
download | mpd-ba675d6a55769a6e82a6efaa2f4a812a4eea2362.tar.gz mpd-ba675d6a55769a6e82a6efaa2f4a812a4eea2362.tar.xz mpd-ba675d6a55769a6e82a6efaa2f4a812a4eea2362.zip |
FileCommands: use PathTraitsUTF8::IsAbsolute()
Diffstat (limited to 'src')
-rw-r--r-- | src/command/FileCommands.cxx | 2 |
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()) { |