util/StringCompare: add StringIsEmpty()
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user