From 982adde64132569d3202f2440d4e8e87e0137a21 Mon Sep 17 00:00:00 2001 From: Maneesh P M Date: Fri, 18 Jun 2021 23:07:02 +0530 Subject: [PATCH] fixup! Drop Reader and Entry wrappers from handle_content --- src/tools/archiveTools.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/archiveTools.cpp b/src/tools/archiveTools.cpp index ebbd2c833..22089e067 100644 --- a/src/tools/archiveTools.cpp +++ b/src/tools/archiveTools.cpp @@ -110,7 +110,7 @@ zim::Entry getEntryFromPath(const zim::Archive& archive, const std::string& path try { return archive.getEntryByPath(path); } catch (zim::EntryNotFound& e) { - if (path.empty()) { + if (path.empty() || path == "/") { return archive.getMainEntry(); } }