diff options
author | Max Kellermann <max@duempel.org> | 2015-11-06 09:37:07 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-11-06 09:37:07 +0100 |
commit | c880099deb41c09ea7844daa27a42dac4142c0cd (patch) | |
tree | 571482d1e6e7efc95ab7d443f246232188d3c23f /src/Mapper.cxx | |
parent | 42f5ecd4a116c96d30bf407859dadaa9a053ea39 (diff) |
util/StringCompare: add StringIsEmpty()
Diffstat (limited to 'src/Mapper.cxx')
-rw-r--r-- | src/Mapper.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Mapper.cxx b/src/Mapper.cxx index 15d706922..7e326b421 100644 --- a/src/Mapper.cxx +++ b/src/Mapper.cxx @@ -27,6 +27,7 @@ #include "fs/Traits.hxx" #include "fs/Charset.hxx" #include "fs/CheckFile.hxx" +#include "util/StringCompare.hxx" #ifdef ENABLE_DATABASE #include "storage/StorageInterface.hxx" @@ -98,7 +99,7 @@ map_fs_to_utf8(Path path_fs) return std::string(); auto relative = music_dir_fs.Relative(path_fs); - if (relative == nullptr || *relative == 0) + if (relative == nullptr || StringIsEmpty(relative)) return std::string(); path_fs = Path::FromFS(relative); |