[gupnp] gupnp-acl: Add missing return statements



commit 1455e2bb962ccb7d2d62f53eaabb917c336f6fae
Author: Philip Withnall <philip withnall collabora co uk>
Date:   Mon May 19 10:18:37 2014 +0100

    gupnp-acl: Add missing return statements
    
    Coverity issues: #60379, #60380
    
    https://bugzilla.gnome.org/show_bug.cgi?id=730359

 libgupnp/gupnp-acl.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libgupnp/gupnp-acl.c b/libgupnp/gupnp-acl.c
index cafea14..bfb642b 100644
--- a/libgupnp/gupnp-acl.c
+++ b/libgupnp/gupnp-acl.c
@@ -138,7 +138,7 @@ gupnp_acl_is_allowed_finish (GUPnPAcl      *self,
                              GAsyncResult  *res,
                              GError       **error)
 {
-        g_return_if_fail (GUPNP_IS_ACL (self));
+        g_return_val_if_fail (GUPNP_IS_ACL (self), FALSE);
 
         return GUPNP_ACL_GET_INTERFACE (self)->is_allowed_finish (self,
                                                                   res,
@@ -158,7 +158,7 @@ gupnp_acl_is_allowed_finish (GUPnPAcl      *self,
 gboolean
 gupnp_acl_can_sync (GUPnPAcl *self)
 {
-        g_return_if_fail (GUPNP_IS_ACL (self));
+        g_return_val_if_fail (GUPNP_IS_ACL (self), FALSE);
 
         return GUPNP_ACL_GET_INTERFACE (self)->can_sync (self);
 }


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