Skip to content

Commit 85d64ca

Browse files
committed
Fix return value for Manager::parseOpdsDom
1 parent ece4096 commit 85d64ca

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/manager.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,8 @@ bool Manager::parseOpdsDom(const pugi::xml_document& doc, const std::string& url
143143
m_totalBooks = strtoull(libraryNode.child("totalResults").child_value(), 0, 0);
144144
m_startIndex = strtoull(libraryNode.child("startIndex").child_value(), 0, 0);
145145
m_itemsPerPage = strtoull(libraryNode.child("itemsPerPage").child_value(), 0, 0);
146-
m_hasSearchResult = true;
147146
} catch(...) {
148-
m_hasSearchResult = false;
147+
return false;
149148
}
150149

151150
for (pugi::xml_node entryNode = libraryNode.child("entry"); entryNode;

0 commit comments

Comments
 (0)