mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-10-20 20:53:19 +02:00
a402c8f295
This, apparently, is not an official release (it's tagged, but the tarball is not available on the official site), but this repo is the official repo mentioned on the official site. This fixes a bunch of very annoying bugs present in 0.99.4, e.g. ``` $ FBReader filename ``` does not crash anymore. Yay!
12 lines
504 B
Diff
12 lines
504 B
Diff
diff --git a/fbreader/src/database/booksdb/BooksDB.cpp b/fbreader/src/database/booksdb/BooksDB.cpp
|
|
index e33a22e76..1b6092800 100644
|
|
--- a/fbreader/src/database/booksdb/BooksDB.cpp
|
|
+++ b/fbreader/src/database/booksdb/BooksDB.cpp
|
|
@@ -146,5 +146,5 @@ shared_ptr<Book> BooksDB::loadBook(const std::string &fileName) {
|
|
myFindFileId->setFileName(fileName);
|
|
if (!myFindFileId->run()) {
|
|
- return false;
|
|
+ return 0;
|
|
}
|
|
((DBIntValue&)*myLoadBook->parameter("@file_id").value()) = myFindFileId->fileId();
|