[gdm] Fix gdm_slave_get_timed_login_details
- From: Ray Strode <halfline src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gdm] Fix gdm_slave_get_timed_login_details
- Date: Fri, 25 Sep 2009 19:15:17 +0000 (UTC)
commit 9fd603874caa65791cd74aa88daf61f9f196d5c3
Author: Ray Strode <rstrode redhat com>
Date: Fri Sep 25 15:07:54 2009 -0400
Fix gdm_slave_get_timed_login_details
Before it would fail if a NULL username was passed in,
breaking autologin on the multi-stack branch.
daemon/gdm-slave.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/daemon/gdm-slave.c b/daemon/gdm-slave.c
index 7bc98c5..94a32ee 100644
--- a/daemon/gdm-slave.c
+++ b/daemon/gdm-slave.c
@@ -881,6 +881,16 @@ gdm_slave_get_timed_login_details (GdmSlave *slave,
if (usernamep != NULL) {
*usernamep = gdm_slave_parse_enriched_login (slave,
username, slave->priv->display_name);
+ } else {
+ g_free (username);
+
+ if (enabledp != NULL) {
+ *enabledp = enabled;
+ }
+ if (delayp != NULL) {
+ *delayp = delay;
+ }
+ return TRUE;
}
g_free (username);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]