summaryrefslogtreecommitdiff
path: root/telepathy-glib/connection-handles.c
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2008-10-07 17:11:27 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2008-10-13 12:57:35 +0100
commit7fbbf2a8c8939c9f207d2da092ff72e38bfc6bcf (patch)
tree5337ac9b52f10f4370b673a9333342c960a8f272 /telepathy-glib/connection-handles.c
parent250728b3f74da0eb1a9499d5370398f721257bf3 (diff)
downloadtelepathy-glib-7fbbf2a8c8939c9f207d2da092ff72e38bfc6bcf.tar.gz
tp_connection_unref_handles: turn an assert into a return_if_fail
Passing an out-of-range handle type is library user error, so we should g_return_if_fail on it.
Diffstat (limited to 'telepathy-glib/connection-handles.c')
-rw-r--r--telepathy-glib/connection-handles.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/telepathy-glib/connection-handles.c b/telepathy-glib/connection-handles.c
index 452275d56..dfa7dd2d4 100644
--- a/telepathy-glib/connection-handles.c
+++ b/telepathy-glib/connection-handles.c
@@ -295,7 +295,7 @@ tp_connection_unref_handles (TpConnection *self,
return;
}
- g_assert (handle_type < NUM_TP_HANDLE_TYPES);
+ g_return_if_fail (handle_type < NUM_TP_HANDLE_TYPES);
/* MT: libdbus protects us, if so configured */
if (!dbus_connection_allocate_data_slot (&connection_handle_refs_slot))