diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2013-10-16 12:04:19 -0400 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2013-10-16 12:04:19 -0400 |
commit | d3f72cf6986452531d85bef2c2467675db079f66 (patch) | |
tree | c17d7339acc10a815eeeff67145dcc343a27a8b7 | |
parent | b41d9eb6452975bc0376e042cb04e0564f6e5a3b (diff) |
construct_contact_statuses_cb: assert that handles are valid
tp-glib checks that for us.
-rw-r--r-- | src/conn-presence.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conn-presence.c b/src/conn-presence.c index 6d1a2359e..ab9585f2a 100644 --- a/src/conn-presence.c +++ b/src/conn-presence.c @@ -185,8 +185,8 @@ construct_contact_statuses_cb (GObject *obj, TpHandleRepoIface *handle_repo = tp_base_connection_get_handles (base, TP_HANDLE_TYPE_CONTACT); - if (!tp_handles_are_valid (handle_repo, contact_handles, FALSE, NULL)) - return NULL; + g_return_val_if_fail (tp_handles_are_valid (handle_repo, contact_handles, + FALSE, NULL), NULL); contact_statuses = g_hash_table_new_full (g_direct_hash, g_direct_equal, NULL, (GDestroyNotify) tp_presence_status_free); |