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/storage/CompositeStorage.cxx | |
parent | 42f5ecd4a116c96d30bf407859dadaa9a053ea39 (diff) | |
download | mpd-c880099deb41c09ea7844daa27a42dac4142c0cd.tar.gz mpd-c880099deb41c09ea7844daa27a42dac4142c0cd.tar.xz mpd-c880099deb41c09ea7844daa27a42dac4142c0cd.zip |
util/StringCompare: add StringIsEmpty()
Diffstat (limited to 'src/storage/CompositeStorage.cxx')
-rw-r--r-- | src/storage/CompositeStorage.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/storage/CompositeStorage.cxx b/src/storage/CompositeStorage.cxx index 10a478c0d..eb3a9546f 100644 --- a/src/storage/CompositeStorage.cxx +++ b/src/storage/CompositeStorage.cxx @@ -23,6 +23,7 @@ #include "fs/AllocatedPath.hxx" #include "util/Error.hxx" #include "util/Domain.hxx" +#include "util/StringCompare.hxx" #include <set> @@ -164,7 +165,7 @@ CompositeStorage::Directory::Unmount() bool CompositeStorage::Directory::Unmount(const char *uri) { - if (*uri == 0) + if (StringIsEmpty(uri)) return Unmount(); const std::string name = NextSegment(uri); |