summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2014-05-28 11:53:15 +0200
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2014-05-28 12:00:11 +0200
commitfa55e3d1127f9046c7a1e5202472a2a3a64df9d8 (patch)
treea3695229068119a388576bcf3299a92ffed78e8e
parenta62cac2c611669a0e7e8defa6b73f38e946720cc (diff)
downloadtelepathy-glib-fa55e3d1127f9046c7a1e5202472a2a3a64df9d8.tar.gz
tp_handles_are_valid_variant: add some pre-condition checks
-rw-r--r--telepathy-glib/handle-repo.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/telepathy-glib/handle-repo.c b/telepathy-glib/handle-repo.c
index 3601e50f6..8633453b7 100644
--- a/telepathy-glib/handle-repo.c
+++ b/telepathy-glib/handle-repo.c
@@ -121,6 +121,8 @@ tp_handles_are_valid_variant (TpHandleRepoIface *self,
GArray *arr;
gboolean result;
+ g_return_val_if_fail (TP_IS_HANDLE_REPO_IFACE (self), FALSE);
+ g_return_val_if_fail (handles != NULL, FALSE);
g_return_val_if_fail (g_variant_is_of_type (handles, G_VARIANT_TYPE ("au")),
FALSE);