[gdm] Fix a g_debug line that is crashing on Solaris due to a NULL being passed in.



commit 7b4183c1205fe88849beb2f1fd9ed13a4beff90e
Author: Brian Cameron <Brian Cameron sun com>
Date:   Thu Sep 3 02:46:59 2009 -0500

    Fix a g_debug line that is crashing on Solaris due to a NULL being passed in.
    The crash would happen if Autologin is turned on, but gdm-autologin is not
    defined in /etc/pam.conf.

 daemon/gdm-session-direct.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/daemon/gdm-session-direct.c b/daemon/gdm-session-direct.c
index e1ea8a0..47a5778 100644
--- a/daemon/gdm-session-direct.c
+++ b/daemon/gdm-session-direct.c
@@ -158,7 +158,8 @@ send_dbus_string_signal (GdmSessionDirect *session,
         dbus_message_iter_append_basic (&iter, DBUS_TYPE_STRING, &text);
 
         if (! send_dbus_message (session->priv->worker_connection, message)) {
-                g_debug ("GdmSessionDirect: Could not send %s signal", name);
+                g_debug ("GdmSessionDirect: Could not send %s signal",
+                         name ? name : "(null)");
         }
 
         dbus_message_unref (message);



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