util/StringCompare: add StringIsEmpty()
This commit is contained in:
@@ -25,8 +25,9 @@
|
||||
#include "lib/smbclient/Init.hxx"
|
||||
#include "lib/smbclient/Mutex.hxx"
|
||||
#include "fs/Traits.hxx"
|
||||
#include "util/Error.hxx"
|
||||
#include "thread/Mutex.hxx"
|
||||
#include "util/Error.hxx"
|
||||
#include "util/StringCompare.hxx"
|
||||
|
||||
#include <libsmbclient.h>
|
||||
|
||||
@@ -80,7 +81,7 @@ SmbclientStorage::MapUTF8(const char *uri_utf8) const
|
||||
{
|
||||
assert(uri_utf8 != nullptr);
|
||||
|
||||
if (*uri_utf8 == 0)
|
||||
if (StringIsEmpty(uri_utf8))
|
||||
return base;
|
||||
|
||||
return PathTraitsUTF8::Build(base.c_str(), uri_utf8);
|
||||
|
Reference in New Issue
Block a user