summaryrefslogtreecommitdiff
path: root/gio/gdbusproxy.c
diff options
context:
space:
mode:
authorDavid Zeuthen <davidz@redhat.com>2010-07-14 11:14:58 -0400
committerDavid Zeuthen <davidz@redhat.com>2010-07-14 11:19:24 -0400
commit497edd8b40edfbf85e029a9300e0d99ac6f08630 (patch)
treed2dac64478a5a332ab5ebdb155cfc2d939de4697 /gio/gdbusproxy.c
parent8a2e7d371fdf55c23c61be908761431509cd3a7c (diff)
Bug 623815 – Don't check sender for GDBusProxy objects where name is not set
Based on a patch from Peng Huang <shawn.p.huang@gmail.com>, thanks! https://bugzilla.gnome.org/show_bug.cgi?id=623815 Signed-off-by: David Zeuthen <davidz@redhat.com>
Diffstat (limited to 'gio/gdbusproxy.c')
-rw-r--r--gio/gdbusproxy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gio/gdbusproxy.c b/gio/gdbusproxy.c
index fa2db2f0e..542a8e8d2 100644
--- a/gio/gdbusproxy.c
+++ b/gio/gdbusproxy.c
@@ -737,7 +737,7 @@ on_signal_received (GDBusConnection *connection,
if (!proxy->priv->initialized)
goto out;
- if (g_strcmp0 (sender_name, proxy->priv->name_owner) != 0)
+ if (proxy->priv->name_owner != NULL && g_strcmp0 (sender_name, proxy->priv->name_owner) != 0)
goto out;
g_signal_emit (proxy,
@@ -778,7 +778,7 @@ on_properties_changed (GDBusConnection *connection,
if (!proxy->priv->initialized)
goto out;
- if (g_strcmp0 (sender_name, proxy->priv->name_owner) != 0)
+ if (proxy->priv->name_owner != NULL && g_strcmp0 (sender_name, proxy->priv->name_owner) != 0)
goto out;
if (!g_variant_is_of_type (parameters, G_VARIANT_TYPE ("(sa{sv}as)")))