diff --git a/src/db/update/Service.cxx b/src/db/update/Service.cxx index 7363656a0..b53188b12 100644 --- a/src/db/update/Service.cxx +++ b/src/db/update/Service.cxx @@ -196,8 +196,7 @@ UpdateService::Enqueue(std::string_view path, bool discard) storage2 = storage.GetMount(path); path = ""; } else { - const std::string mountpoint(lr.uri); - storage2 = storage.GetMount(mountpoint.c_str()); + storage2 = storage.GetMount(lr.uri); path = lr.rest; } } else {