From 8755b8e97a41bf704adbd145b7e0d4afa1d80d09 Mon Sep 17 00:00:00 2001 From: monsta Date: Tue, 25 Nov 2014 08:05:28 +0300 Subject: properly return a value from non-void function --- backend/epub/epub-document.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'backend/epub') 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 +} -- cgit v1.2.1