diff --git a/src/archive.cpp b/src/archive.cpp index 7f3980686..0f4751859 100644 --- a/src/archive.cpp +++ b/src/archive.cpp @@ -252,7 +252,9 @@ namespace zim Entry Archive::getEntryByUrl(const std::string& url) const { - const auto [path, queryParams] = urlSplit(url); + std::string path; + std::vector> queryParams; + std::tie(path, queryParams) = urlSplit(url); try { return getEntryByPath(path); } catch (const EntryNotFound& e) {