summaryrefslogtreecommitdiff
path: root/daemon
diff options
context:
space:
mode:
authorWilliam Jon McCann <mccann@jhu.edu>2007-09-05 00:29:59 +0000
committerWilliam Jon McCann <mccann@src.gnome.org>2007-09-05 00:29:59 +0000
commitc759901da4453f6b0f680aca3b6b32841542496c (patch)
tree0dc372f6be4bc9276e88da6e1da0955791e4179e /daemon
parent243384bac597df60851980e19f02f8c7e399a5cc (diff)
downloadgdm-c759901da4453f6b0f680aca3b6b32841542496c.tar.gz
Don't print null strings - solaris crashes. Patch from Brian Cameron
2007-09-04 William Jon McCann <mccann@jhu.edu> * daemon/gdm-session-worker.c (gdm_session_worker_verify_user): Don't print null strings - solaris crashes. Patch from Brian Cameron <brian.cameron@sun.com> svn path=/branches/mccann-gobject/; revision=5224
Diffstat (limited to 'daemon')
-rw-r--r--daemon/gdm-session-worker.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/daemon/gdm-session-worker.c b/daemon/gdm-session-worker.c
index 143ca034..9a40e2de 100644
--- a/daemon/gdm-session-worker.c
+++ b/daemon/gdm-session-worker.c
@@ -1119,7 +1119,11 @@ gdm_session_worker_verify_user (GdmSessionWorker *worker,
GError *pam_error;
gboolean res;
- g_debug ("Verifying user: %s host: %s service: %s tty: %s", username, hostname, service_name, console_name);
+ g_debug ("Verifying user: %s host: %s service: %s tty: %s",
+ username != NULL ? username : "(null)",
+ hostname != NULL ? hostname : "(null)",
+ service_name != NULL ? service_name : "(null)",
+ console_name != NULL ? console_name : "(null)");
pam_error = NULL;
res = gdm_session_worker_initialize_pam (worker,