diff options
author | Max Kellermann <max@duempel.org> | 2015-02-28 22:07:01 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-02-28 23:00:27 +0100 |
commit | 44b9197354dc1f69c6de6a2f4f3e5a5722d05b62 (patch) | |
tree | 95bdfddd8c2bb791be738803dcbd8989e9acfdfd /src/Mapper.cxx | |
parent | 7a8f96b1dd707ef96f8d8fe6821263d6f3cd225b (diff) | |
download | mpd-44b9197354dc1f69c6de6a2f4f3e5a5722d05b62.tar.gz mpd-44b9197354dc1f69c6de6a2f4f3e5a5722d05b62.tar.xz mpd-44b9197354dc1f69c6de6a2f4f3e5a5722d05b62.zip |
Mapper: use class Path
Diffstat (limited to 'src/Mapper.cxx')
-rw-r--r-- | src/Mapper.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Mapper.cxx b/src/Mapper.cxx index 1dff3949c..14718ca09 100644 --- a/src/Mapper.cxx +++ b/src/Mapper.cxx @@ -86,8 +86,10 @@ map_uri_fs(const char *uri) } std::string -map_fs_to_utf8(const char *path_fs) +map_fs_to_utf8(Path _path_fs) { + auto path_fs = _path_fs.c_str(); + if (PathTraitsFS::IsSeparator(path_fs[0])) { if (instance->storage == nullptr) return std::string(); |