summaryrefslogtreecommitdiff
path: root/backend/epub/epub-document.c
diff options
context:
space:
mode:
Diffstat (limited to 'backend/epub/epub-document.c')
-rw-r--r--backend/epub/epub-document.c4
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
+}