[gnome-session] Modified a g_debug for on_client_end_session_response() not to crash when a null pointer



commit 64c0b0d52f7740a3a23e1849e6cb57422359a7cb
Author: gheet <ghee teo sun com>
Date:   Thu Apr 30 17:39:48 2009 +0100

    Modified a g_debug for on_client_end_session_response() not to crash when a null pointer
    is encountered on Solaris. bugzilla #580824 comment#7.
---
 gnome-session/gsm-manager.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/gnome-session/gsm-manager.c b/gnome-session/gsm-manager.c
index 3679a57..8b1d743 100644
--- a/gnome-session/gsm-manager.c
+++ b/gnome-session/gsm-manager.c
@@ -1790,7 +1790,7 @@ on_client_end_session_response (GsmClient  *client,
                 return;
         }
 
-        g_debug ("GsmManager: Response from end session request: is-ok=%d do-last=%d cancel=%d reason=%s", is_ok, do_last, cancel, reason);
+        g_debug ("GsmManager: Response from end session request: is-ok=%d do-last=%d cancel=%d reason=%s", is_ok, do_last, cancel, reason ? reason :"");
 
         if (cancel) {
                 cancel_end_session (manager);



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