[gdm] Only get username in the simple-slave if the session is not NULL.
- From: Brian Cameron <bcameron src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm] Only get username in the simple-slave if the session is not NULL.
- Date: Thu, 19 May 2011 23:39:09 +0000 (UTC)
commit ac8a754bfc6675be66bddfb551dde7acec355d20
Author: Brian Cameron <Brian Cameron Oracle COM>
Date: Thu May 19 18:38:33 2011 -0500
Only get username in the simple-slave if the session is not NULL.
daemon/gdm-simple-slave.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/daemon/gdm-simple-slave.c b/daemon/gdm-simple-slave.c
index 1feef46..13987ed 100644
--- a/daemon/gdm-simple-slave.c
+++ b/daemon/gdm-simple-slave.c
@@ -437,7 +437,10 @@ stop_greeter (GdmSimpleSlave *slave)
}
/* Run the PostLogin script. gdmslave suspends until script has terminated */
- username = gdm_session_direct_get_username (slave->priv->session);
+ username = NULL;
+ if (slave->priv->session != NULL) {
+ username = gdm_session_direct_get_username (slave->priv->session);
+ }
if (username != NULL) {
gdm_slave_run_script (GDM_SLAVE (slave), GDMCONFDIR "/PostLogin", username);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]