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



commit e92ef812d12dbb6c9a4ac33d3563b25a01b734ec
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 fa60f69..64e305e 100644
--- a/src/goabackend/goaprovider.c
+++ b/src/goabackend/goaprovider.c
@@ -782,8 +782,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]