From 3e72eb7096fd2a350929df8c9ceab143d5b1ff0a Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Sat, 29 Jun 1996 03:37:49 +0000 Subject: (login): Initialize DATA so that setutent_r will actually do something. --- login/login.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'login/login.c') diff --git a/login/login.c b/login/login.c index ede02d7938..ea1a947676 100644 --- a/login/login.c +++ b/login/login.c @@ -86,7 +86,7 @@ login (const struct utmp *ut) char *tty = _tty; int found_tty; const char *ttyp; - struct utmp_data data; + struct utmp_data data = { -1 }; /* Seek tty. */ found_tty = tty_name (STDIN_FILENO, &tty, sizeof (_tty)); -- cgit v1.2.1