From 0e1df1c80144287202ac46614ac8b65c16093c65 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Tue, 29 Mar 2011 15:08:36 +0100 Subject: [PATCH 4/5] dbus_g_proxy_end_call: check that it's a proxy --- dbus/dbus-gproxy.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/dbus/dbus-gproxy.c b/dbus/dbus-gproxy.c index 46d594d..0af05cc 100644 --- a/dbus/dbus-gproxy.c +++ b/dbus/dbus-gproxy.c @@ -2579,6 +2579,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); -- 1.7.4.1