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



commit 69373d1beeb03180d4e364035866c40d77b29dfa
Author: Debarshi Ray <debarshir gnome org>
Date:   Wed Jan 4 16:44:09 2017 +0100

    tplinker: Be more strict about what is acceptable

 src/goabackend/goatpaccountlinker.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/goabackend/goatpaccountlinker.c b/src/goabackend/goatpaccountlinker.c
index aa9f01e..72ce9c5 100644
--- a/src/goabackend/goatpaccountlinker.c
+++ b/src/goabackend/goatpaccountlinker.c
@@ -657,6 +657,9 @@ goa_tp_account_linker_remove_tp_account_finish (GoaTpAccountLinker  *self,
 {
   GTask *task;
 
+  g_return_val_if_fail (GOA_IS_TP_ACCOUNT_LINKER (self), FALSE);
+  g_return_val_if_fail (error == NULL || *error == NULL, FALSE);
+
   g_return_val_if_fail (g_task_is_valid (res, self), FALSE);
   task = G_TASK (res);
 


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