db/update/Service: avoid copying the mount point path

This commit is contained in:
Max Kellermann 2020-07-06 21:09:57 +02:00
parent c3cfb5fe16
commit 9964a5ffe8

View File

@ -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 {