summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2011-03-29 15:08:36 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2011-04-19 10:58:58 +0100
commitf2b445d0d931f3f680cefe0141e62abeafda9742 (patch)
tree5e55feb47da655a819e2419a3b1a0112354a87df
parent811089dae49c2f47d0f15fd7e9c180674f484391 (diff)
dbus_g_proxy_end_call: check that it's a proxy
Reviewed-by: Will Thompson <will.thompson@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=23616
-rw-r--r--dbus/dbus-gproxy.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/dbus/dbus-gproxy.c b/dbus/dbus-gproxy.c
index d2a649c..cdf3d57 100644
--- a/dbus/dbus-gproxy.c
+++ b/dbus/dbus-gproxy.c
@@ -2634,6 +2634,8 @@ dbus_g_proxy_end_call (DBusGProxy *proxy,
gboolean ret;
va_list args;
+ g_return_val_if_fail (DBUS_IS_G_PROXY (proxy), FALSE);
+
va_start (args, first_arg_type);
ret = dbus_g_proxy_end_call_internal (proxy, GPOINTER_TO_UINT (call), error, first_arg_type, args);