[gconf] gconfd-dbus: Handle messages that don't have an interface set



commit 150e7fbea18a1431891224a79e6710377b4aa9dc
Author: Rob Bradford <rob linux intel com>
Date:   Sun Aug 14 16:49:10 2011 +0100

    gconfd-dbus: Handle messages that don't have an interface set
    
    Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=656248
    
    Inspired by proposed solution from Joey Zheng.

 gconf/gconfd-dbus.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gconf/gconfd-dbus.c b/gconf/gconfd-dbus.c
index cb0ecac..45321ad 100644
--- a/gconf/gconfd-dbus.c
+++ b/gconf/gconfd-dbus.c
@@ -75,8 +75,8 @@ server_message_func (DBusConnection *connection,
       return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
     }
                                                                                 
-  if (strcmp (dbus_message_get_interface (message),
-	      GCONF_DBUS_SERVER_INTERFACE) != 0) 
+  if (g_strcmp0 (dbus_message_get_interface (message),
+	         GCONF_DBUS_SERVER_INTERFACE) != 0)
     {
       g_print ("Not correct interface: \"%s\"\n",
 	       dbus_message_get_interface (message));



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]