summaryrefslogtreecommitdiff
path: root/libgupnp
diff options
context:
space:
mode:
authorPhilip Withnall <philip.withnall@collabora.co.uk>2014-05-19 10:18:37 +0100
committerPhilip Withnall <philip.withnall@collabora.co.uk>2014-05-19 10:19:48 +0100
commit1455e2bb962ccb7d2d62f53eaabb917c336f6fae (patch)
treee619b0ebb45a76cf7c53cb4d63a19500ef1674c3 /libgupnp
parentdd6008cdba08e2f1fe8bb97946c6515a355dd56a (diff)
downloadgupnp-1455e2bb962ccb7d2d62f53eaabb917c336f6fae.tar.gz
gupnp-acl: Add missing return statements
Coverity issues: #60379, #60380 https://bugzilla.gnome.org/show_bug.cgi?id=730359
Diffstat (limited to 'libgupnp')
-rw-r--r--libgupnp/gupnp-acl.c4
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);
}