diff options
author | Eitan Isaacson <eitan@monotonous.org> | 2010-09-22 00:20:16 -0700 |
---|---|---|
committer | Eitan Isaacson <eitan@monotonous.org> | 2010-09-22 00:42:57 -0700 |
commit | ba4d91545c785642e96daabd802e8c529aac268a (patch) | |
tree | 90d0c34aa77df908b169bce90ff9b0486eb51ef4 /telepathy-glib/contacts-mixin.c | |
parent | 686122079ec1f1072b0492082d406360e6a2e673 (diff) | |
download | telepathy-glib-ba4d91545c785642e96daabd802e8c529aac268a.tar.gz |
Added type checking to tp_contacts_mixin_get_contact_attributes.
I really don't know if I did the mixin check right.
Diffstat (limited to 'telepathy-glib/contacts-mixin.c')
-rw-r--r-- | telepathy-glib/contacts-mixin.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/telepathy-glib/contacts-mixin.c b/telepathy-glib/contacts-mixin.c index 3536d34ff..0d0eb4b81 100644 --- a/telepathy-glib/contacts-mixin.c +++ b/telepathy-glib/contacts-mixin.c @@ -293,6 +293,9 @@ tp_contacts_mixin_get_contact_attributes (GObject *obj, GArray *valid_handles; TpContactsMixinFillContactAttributesFunc func; + g_return_val_if_fail (TP_IS_BASE_CONNECTION (obj), NULL); + g_return_val_if_fail (TP_CONTACTS_MIXIN_OFFSET (obj) != 0, NULL); + /* Setup handle array and hash with valid handles, optionally holding them */ valid_handles = g_array_sized_new (TRUE, TRUE, sizeof (TpHandle), handles->len); |