[empathy] empathy_contact_manager_can_add: raise an error if connection is NULL
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: svn-commits-list gnome org
- Subject: [empathy] empathy_contact_manager_can_add: raise an error if connection is NULL
- Date: Tue, 7 Jul 2009 15:15:59 +0000 (UTC)
commit 3b848301b06feddc82cbf667876ae502b95bbe6e
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Sun Jul 5 16:29:09 2009 +0100
empathy_contact_manager_can_add: raise an error if connection is NULL
libempathy/empathy-contact-manager.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/libempathy/empathy-contact-manager.c b/libempathy/empathy-contact-manager.c
index 7af2bd3..059382b 100644
--- a/libempathy/empathy-contact-manager.c
+++ b/libempathy/empathy-contact-manager.c
@@ -535,6 +535,7 @@ empathy_contact_manager_can_add (EmpathyContactManager *manager,
EmpathyTpContactList *list;
g_return_val_if_fail (EMPATHY_IS_CONTACT_MANAGER (manager), FALSE);
+ g_return_val_if_fail (connection != NULL, FALSE);
list = g_hash_table_lookup (priv->lists, connection);
if (list == NULL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]