[Xfce4-commits] [xfce/xfce4-session] 01/01: Propery print the dbus error message

noreply at xfce.org noreply at xfce.org
Mon Sep 22 12:17:46 CEST 2014


This is an automated email from the git hooks/post-receive script.

eric pushed a commit to branch master
in repository xfce/xfce4-session.

commit 0afe3ba5ef6539cf79d773fe33027d63b672b657
Author: Eric Koegel <eric.koegel at gmail.com>
Date:   Mon Sep 22 12:30:07 2014 +0300

    Propery print the dbus error message
    
    There's code to do the error handling but error didn't get passed
    into the function so it wouldn't ever get used.
---
 xfce4-session/main.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xfce4-session/main.c b/xfce4-session/main.c
index daf8bc9..0c27a55 100644
--- a/xfce4-session/main.c
+++ b/xfce4-session/main.c
@@ -157,7 +157,7 @@ xfsm_dbus_init (void)
 
   xfsm_error_dbus_init ();
 
-  dbus_conn = dbus_g_bus_get (DBUS_BUS_SESSION, NULL);
+  dbus_conn = dbus_g_bus_get (DBUS_BUS_SESSION, &error);
   if (G_UNLIKELY (!dbus_conn))
     {
       g_critical ("Unable to contact D-Bus session bus: %s", error ? error->message : "Unknown error");

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list