summaryrefslogtreecommitdiff
path: root/daemons
diff options
context:
space:
mode:
Diffstat (limited to 'daemons')
-rw-r--r--daemons/getty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemons/getty.c b/daemons/getty.c
index 0d545396..5714778d 100644
--- a/daemons/getty.c
+++ b/daemons/getty.c
@@ -78,7 +78,7 @@ main (int argc, char **argv)
asprintf (&arg, "TERM=%s", tt ? tt->ty_type : "unknown");
- if (strcmp (tt->ty_type, "dialup") == 0)
+ if (tt && strcmp (tt->ty_type, "dialup") == 0)
/* Dialup lines time out (which is login's default). */
execl (_PATH_LOGIN, "login", "-e", arg, 0);
else