diff options
author | Max Kellermann <max@musicpd.org> | 2020-07-06 21:09:57 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2020-07-06 21:09:58 +0200 |
commit | 9964a5ffe8f12c48c0276d924ced4859c8de2ee0 (patch) | |
tree | e4cb9058989639bd9eb168ba6e5309e64f443f0d /src/db/update/Service.cxx | |
parent | c3cfb5fe166b8ce860d581a0ddd59a4915cb36db (diff) |
db/update/Service: avoid copying the mount point path
Diffstat (limited to 'src/db/update/Service.cxx')
-rw-r--r-- | src/db/update/Service.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
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 { |