aboutsummaryrefslogtreecommitdiffstats
path: root/src/Mapper.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Mapper.cxx')
-rw-r--r--src/Mapper.cxx3
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);