[Telepathy-commits] [telepathy-glib/master] ContactMixin: Assert that attribute values are GValues

Sjoerd Simons sjoerd at luon.net
Wed Aug 13 10:01:39 PDT 2008


20080813170139-93b9a-47b6a0318d739f95647068a1ac5ebabc10183b3c.gz
---
 telepathy-glib/contacts-mixin.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/telepathy-glib/contacts-mixin.c b/telepathy-glib/contacts-mixin.c
index 62c0020..5f4a503 100644
--- a/telepathy-glib/contacts-mixin.c
+++ b/telepathy-glib/contacts-mixin.c
@@ -420,6 +420,7 @@ tp_contacts_mixin_set_contact_attribute (GHashTable *contact_attributes,
     GUINT_TO_POINTER (handle));
 
   g_assert (attributes != NULL);
+  g_assert (G_IS_VALUE (value));
 
   g_hash_table_insert (attributes, g_strdup (attribute), value);
 }
-- 
1.5.6.3




More information about the Telepathy-commits mailing list