FileCommands: use PathTraitsUTF8::IsAbsolute()

This commit is contained in:
Max Kellermann 2014-02-03 23:09:25 +01:00
parent e4c5a4f61b
commit ba675d6a55
1 changed files with 1 additions and 1 deletions

View File

@ -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()) {