[gnome-online-accounts] provider: Be more strict about what is acceptable



commit 53708d99c66c543dbaf7be5ff0a6e19917ed4568
Author: Debarshi Ray <debarshir gnome org>
Date:   Tue May 3 19:04:42 2016 +0200

    provider: Be more strict about what is acceptable

 src/goabackend/goaprovider.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/goabackend/goaprovider.c b/src/goabackend/goaprovider.c
index c1498c1..c96e97b 100644
--- a/src/goabackend/goaprovider.c
+++ b/src/goabackend/goaprovider.c
@@ -790,8 +790,10 @@ goa_provider_ensure_credentials_sync (GoaProvider     *self,
                                       GError         **error)
 {
   g_return_val_if_fail (GOA_IS_PROVIDER (self), FALSE);
+  g_return_val_if_fail (GOA_IS_OBJECT (object), FALSE);
   g_return_val_if_fail (cancellable == NULL || G_IS_CANCELLABLE (cancellable), FALSE);
   g_return_val_if_fail (error == NULL || *error == NULL, FALSE);
+
   return GOA_PROVIDER_GET_CLASS (self)->ensure_credentials_sync (self, object, out_expires_in, cancellable, 
error);
 }
 


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