[next] telepathy-glib: tp_handle_ensure: add some pre-conditions
Simon McVittie
smcv at kemper.freedesktop.org
Wed Sep 17 05:22:52 PDT 2014
Module: telepathy-glib
Branch: next
Commit: efa85d688723d795a3b59561ffd37158ad6fc47b
URL: http://cgit.freedesktop.org/telepathy/telepathy-glib/commit/?id=efa85d688723d795a3b59561ffd37158ad6fc47b
Author: Guillaume Desmottes <guillaume.desmottes at collabora.co.uk>
Date: Tue May 27 17:57:06 2014 +0200
tp_handle_ensure: add some pre-conditions
---
telepathy-glib/handle-repo.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/telepathy-glib/handle-repo.c b/telepathy-glib/handle-repo.c
index 886bf1e..3601e50 100644
--- a/telepathy-glib/handle-repo.c
+++ b/telepathy-glib/handle-repo.c
@@ -178,6 +178,9 @@ tp_handle_ensure (TpHandleRepoIface *self,
gpointer context,
GError **error)
{
+ g_return_val_if_fail (TP_IS_HANDLE_REPO_IFACE (self), 0);
+ g_return_val_if_fail (id != NULL, 0);
+
return TP_HANDLE_REPO_IFACE_GET_CLASS (self)->ensure_handle (self,
id, context, error);
}
More information about the telepathy-commits
mailing list