diff options
author | monsta <[email protected]> | 2014-11-25 08:05:28 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2014-11-25 08:05:28 +0300 |
commit | 8755b8e97a41bf704adbd145b7e0d4afa1d80d09 (patch) | |
tree | 02cc2d639af94fc4cb9ded5d99372fcf5cff3f6f | |
parent | 647d2147086c132e3fe9fe5698348922189535ae (diff) | |
download | atril-8755b8e97a41bf704adbd145b7e0d4afa1d80d09.tar.bz2 atril-8755b8e97a41bf704adbd145b7e0d4afa1d80d09.tar.xz |
properly return a value from non-void function
-rw-r--r-- | backend/epub/epub-document.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/epub/epub-document.c b/backend/epub/epub-document.c index dd5d458c..8c047b2e 100644 --- a/backend/epub/epub-document.c +++ b/backend/epub/epub-document.c @@ -204,7 +204,7 @@ epub_document_links_has_document_links(EvDocumentLinks *document_links) { EpubDocument *epub_document = EPUB_DOCUMENT(document_links); - g_return_if_fail(EPUB_IS_DOCUMENT(epub_document)); + g_return_val_if_fail(EPUB_IS_DOCUMENT(epub_document), FALSE); if (!epub_document->index) return FALSE; @@ -1768,4 +1768,4 @@ epub_document_class_init (EpubDocumentClass *klass) ev_document_class->get_page = epub_document_get_page; ev_document_class->toggle_night_mode = epub_document_toggle_night_mode; ev_document_class->check_add_night_sheet = epub_document_check_add_night_sheet; -}
\ No newline at end of file +} |