From 97845c7d931be5b14eb550302ff2633e07566370 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Mon, 1 Jul 1996 21:57:43 +0000 Subject: Don't test for dialups if TT == 0. --- daemons/getty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3