db/upnp: don't construct redundant empty vector<string> in Visit()

We know already that vpath is empty, let's use this instance.
This commit is contained in:
Max Kellermann 2014-01-21 22:47:57 +01:00
parent dc5ef9ad01
commit 7777057d35
1 changed files with 1 additions and 1 deletions

View File

@ -704,7 +704,7 @@ UpnpDatabase::Visit(const DatabaseSelection &selection,
} else {
// Recursive is set: visit each server
for (auto& server : servers) {
if (!VisitServer(server, std::vector<std::string>(), selection,
if (!VisitServer(server, vpath, selection,
visit_directory, visit_song, visit_playlist, error))
return false;
}