[next] telepathy-glib: tp_handles_are_valid_variant: add some pre-condition checks
Simon McVittie
smcv at kemper.freedesktop.org
Wed Sep 17 05:22:52 PDT 2014
Module: telepathy-glib
Branch: next
Commit: fa55e3d1127f9046c7a1e5202472a2a3a64df9d8
URL: http://cgit.freedesktop.org/telepathy/telepathy-glib/commit/?id=fa55e3d1127f9046c7a1e5202472a2a3a64df9d8
Author: Guillaume Desmottes <guillaume.desmottes at collabora.co.uk>
Date: Wed May 28 11:53:15 2014 +0200
tp_handles_are_valid_variant: add some pre-condition checks
---
telepathy-glib/handle-repo.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/telepathy-glib/handle-repo.c b/telepathy-glib/handle-repo.c
index 3601e50..8633453 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);
More information about the telepathy-commits
mailing list