From 220515673826ad89b833e66a7dc74d4c53246d69 Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Mon, 27 Oct 2014 21:18:28 +0100 Subject: [PATCH] CS Signed-off-by: Sebastian Ramacher --- zathura.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/zathura.c b/zathura.c index 03d2afd..d1827ff 100644 --- a/zathura.c +++ b/zathura.c @@ -1196,7 +1196,8 @@ position_set(zathura_t* zathura, double position_x, double position_y) void -refresh_view(zathura_t* zathura) { +refresh_view(zathura_t* zathura) +{ g_return_if_fail(zathura != NULL); /* emit a custom refresh-view signal */ @@ -1206,8 +1207,9 @@ refresh_view(zathura_t* zathura) { bool -adjust_view(zathura_t* zathura) { - g_return_val_if_fail(zathura != NULL, false); +adjust_view(zathura_t* zathura) +{ + g_return_val_if_fail(zathura != NULL, false); if (zathura->ui.page_widget == NULL || zathura->document == NULL) { goto error_ret; @@ -1428,7 +1430,7 @@ zathura_jumplist_save(zathura_t* zathura) unsigned int pagenum = zathura_document_get_current_page_number(zathura->document); - if (cur) { + if (cur != NULL) { cur->page = pagenum; cur->x = zathura_document_get_position_x(zathura->document); cur->y = zathura_document_get_position_y(zathura->document);