diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2014-05-27 17:57:06 +0200 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2014-05-27 18:03:24 +0200 |
commit | efa85d688723d795a3b59561ffd37158ad6fc47b (patch) | |
tree | 7be75f180662e937f6578b7a6a07338cedb59a57 | |
parent | f9d7fedf6adefa4252753727118e81dc8cd39ad7 (diff) | |
download | telepathy-glib-efa85d688723d795a3b59561ffd37158ad6fc47b.tar.gz |
tp_handle_ensure: add some pre-conditions
-rw-r--r-- | telepathy-glib/handle-repo.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/telepathy-glib/handle-repo.c b/telepathy-glib/handle-repo.c index 886bf1e5a..3601e50f6 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); } |