diff options
-rw-r--r-- | src/storage/CompositeStorage.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/storage/CompositeStorage.cxx b/src/storage/CompositeStorage.cxx index e090bd63c..9a27270df 100644 --- a/src/storage/CompositeStorage.cxx +++ b/src/storage/CompositeStorage.cxx @@ -162,10 +162,13 @@ CompositeStorage::Directory::Unmount() bool CompositeStorage::Directory::Unmount(const char *uri) { + if (*uri == 0) + return Unmount(); + const std::string name = NextSegment(uri); auto i = children.find(name); - if (i == children.end() || !i->second.Unmount()) + if (i == children.end() || !i->second.Unmount(uri)) return false; if (i->second.IsEmpty()) |