diff --git a/src/server/kiwix-serve.cpp b/src/server/kiwix-serve.cpp index d2fd3f2..1345c30 100644 --- a/src/server/kiwix-serve.cpp +++ b/src/server/kiwix-serve.cpp @@ -1085,7 +1085,7 @@ int main(int argc, char** argv) globalSearcher->setProtocolPrefix(rootLocation + "/"); globalSearcher->setSearchProtocolPrefix(rootLocation + "/" + "search?"); for (auto& bookId: booksIds) { - auto currentBook = library.getBookById(bookId); + auto& currentBook = library.getBookById(bookId); auto zimPath = currentBook.getPath(); auto indexPath = currentBook.getIndexPath(); @@ -1129,7 +1129,7 @@ int main(int argc, char** argv) = "" "