util/StringCompare: add StringIsEmpty()

This commit is contained in:
Max Kellermann
2015-11-06 09:37:07 +01:00
parent 42f5ecd4a1
commit c880099deb
13 changed files with 37 additions and 16 deletions

View File

@@ -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);