From 210cc3349269f8ebbfde1e2f03e72d72371d840a Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Tue, 29 Mar 2011 15:06:18 +0100 Subject: [PATCH 1/5] dbus_g_proxy_new_from_proxy: check that the old proxy is in fact a proxy --- dbus/dbus-gproxy.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dbus/dbus-gproxy.c b/dbus/dbus-gproxy.c index 13a0cb6..898e4fe 100644 --- a/dbus/dbus-gproxy.c +++ b/dbus/dbus-gproxy.c @@ -2024,7 +2024,7 @@ dbus_g_proxy_new_from_proxy (DBusGProxy *proxy, { DBusGProxyPrivate *priv; - g_return_val_if_fail (proxy != NULL, NULL); + g_return_val_if_fail (DBUS_IS_G_PROXY (proxy), NULL); priv = DBUS_G_PROXY_GET_PRIVATE(proxy); -- 1.7.4.1