diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-11-01 10:33:20 +0100 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-11-01 13:05:05 +0100 |
commit | 7a9b6ac95634eb32b651f3280514c7310944c422 (patch) | |
tree | 3124e327575ce89a66577c29e9af82b4ac72d696 | |
parent | 7e48f9876b7505b8a74222f9efc669e8fcbe56fa (diff) |
_tp_contacts_to_handles: check we pass at least one contact
All the functions using this were already documenting that we should pass at
least one contact.
-rw-r--r-- | telepathy-glib/util.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/telepathy-glib/util.c b/telepathy-glib/util.c index 068112db..317533cc 100644 --- a/telepathy-glib/util.c +++ b/telepathy-glib/util.c @@ -1987,6 +1987,7 @@ _tp_contacts_to_handles (TpConnection *connection, guint i; g_return_val_if_fail (handles != NULL, FALSE); + g_return_val_if_fail (n_contacts > 0, FALSE); *handles = g_array_sized_new (FALSE, FALSE, sizeof (TpHandle), n_contacts); |