[evince] libdocument: Fix return value



commit cf45b884a67e37ff3e824f031c2e358eea8058b6
Author: Germán Poo-Caamaño <gpoo gnome org>
Date:   Sat Feb 13 13:50:55 2021 -0300

    libdocument: Fix return value
    
    It must return a gboolean, not a pointer.

 libdocument/ev-link-action.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/libdocument/ev-link-action.c b/libdocument/ev-link-action.c
index cbc5d620..f1d44ffe 100644
--- a/libdocument/ev-link-action.c
+++ b/libdocument/ev-link-action.c
@@ -182,7 +182,7 @@ ev_link_action_get_reset_fields (EvLinkAction *self)
 gboolean
 ev_link_action_get_exclude_reset_fields (EvLinkAction *self)
 {
-       g_return_val_if_fail (EV_IS_LINK_ACTION (self), NULL);
+       g_return_val_if_fail (EV_IS_LINK_ACTION (self), FALSE);
 
        return self->priv->exclude_reset_fields;
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]