diff options
Diffstat (limited to '')
-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); |