Skip to content

Commit

Permalink
Fixes openzim#171 using SEPARATOR instead of "/"
Browse files Browse the repository at this point in the history
  • Loading branch information
maneeshpm committed Jan 21, 2021
1 parent 4706a34 commit cd7a61d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zimdump.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ int ZimDumper::listEntriesByNamespace(const std::string ns, bool details)
int ret = 0;
std::string i0char = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
for (char c:i0char) {
for (auto& entry:m_archive.findByPath(ns + "/" + std::string(1, c))) {
for (auto& entry:m_archive.findByPath(ns + SEPARATOR + std::string(1, c))) {
if (details) {
ret = listEntry(entry);
} else {
Expand Down

0 comments on commit cd7a61d

Please sign in to comment.