summaryrefslogtreecommitdiff
path: root/x11/gdm2/files/patch-daemon::slave.c
blob: d2eda7d4f4ed8bf0d304581a0e0ff3fbafae54b4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$FreeBSD$

--- daemon/slave.c	2001/10/16 06:36:10	1.1
+++ daemon/slave.c	2001/10/16 06:38:57
@@ -1088,7 +1088,10 @@
 	/* this is again informal only, if the greeter does time out it will
 	 * not actually login a user if it's not enabled for this display */
 	if (d->timed_login_ok) {
-		ve_setenv ("GDM_TIMED_LOGIN_OK", ParsedTimedLogin, TRUE);
+		if (ParsedTimedLogin == NULL)
+			ve_setenv ("GDM_TIMED_LOGIN_OK", "", TRUE);
+		else
+			ve_setenv ("GDM_TIMED_LOGIN_OK", ParsedTimedLogin, TRUE);
 	} else {
 		ve_unsetenv ("GDM_TIMED_LOGIN_OK");
 	}