summaryrefslogtreecommitdiff
path: root/telepathy-glib/base-contact-list.c
diff options
context:
space:
mode:
authorWill Thompson <will.thompson@collabora.co.uk>2011-05-16 10:59:18 +0100
committerWill Thompson <will.thompson@collabora.co.uk>2011-05-16 11:32:15 +0100
commit3b4ce2481e7f033294ec1867b079e98ff584eb6d (patch)
tree9319598c70e0ee37f764c7e790e7171dfed91627 /telepathy-glib/base-contact-list.c
parent532c4879df011d8d8f29b71d668867a893f24a5d (diff)
downloadtelepathy-glib-3b4ce2481e7f033294ec1867b079e98ff584eb6d.tar.gz
BaseContactList: assert that just one block_contacts is implemented
Danni suggested in fd.o#35331: “XOR perhaps?”. A fine suggestion. Of course C doesn't have a logical XOR, but bitwise XOR should work in this context.
Diffstat (limited to 'telepathy-glib/base-contact-list.c')
-rw-r--r--telepathy-glib/base-contact-list.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/telepathy-glib/base-contact-list.c b/telepathy-glib/base-contact-list.c
index 411e5ffed..92520fb37 100644
--- a/telepathy-glib/base-contact-list.c
+++ b/telepathy-glib/base-contact-list.c
@@ -728,8 +728,8 @@ tp_base_contact_list_constructed (GObject *object)
g_return_if_fail (iface->can_block != NULL);
g_return_if_fail (iface->dup_blocked_contacts != NULL);
- g_return_if_fail (iface->block_contacts_async != NULL ||
- iface->block_contacts_with_abuse_async != NULL);
+ g_return_if_fail ((iface->block_contacts_async != NULL) ^
+ (iface->block_contacts_with_abuse_async != NULL));
g_return_if_fail (iface->block_contacts_finish != NULL);
g_return_if_fail (iface->unblock_contacts_async != NULL);
g_return_if_fail (iface->unblock_contacts_finish != NULL);