From 0e3efe05044493f758a988dc5d15aa35f1760be6 Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Sat, 23 Feb 2013 17:32:30 +0100 Subject: [PATCH] Fix compiler warnings Signed-off-by: Sebastian Ramacher --- utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils.c b/utils.c index 52a5b26..fd052e5 100644 --- a/utils.c +++ b/utils.c @@ -258,11 +258,11 @@ set_adjustment(GtkAdjustment* adjustment, gdouble value) double page_calc_height_width(zathura_page_t* page, unsigned int* page_height, unsigned int* page_width, bool rotate) { - g_return_if_fail(page != NULL && page_height != NULL && page_width != NULL); + g_return_val_if_fail(page != NULL && page_height != NULL && page_width != NULL, 0.0); zathura_document_t* document = zathura_page_get_document(page); if (document == NULL) { - return; + return 0.0; } double height = zathura_page_get_height(page);