Skip to content

Commit

Permalink
fixup! Drop Reader and Entry wrappers from handle_content
Browse files Browse the repository at this point in the history
  • Loading branch information
maneeshpm committed Jun 18, 2021
1 parent 5593b1a commit 982adde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/archiveTools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
Expand Down

0 comments on commit 982adde

Please sign in to comment.