summaryrefslogtreecommitdiff
path: root/login
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-06-29 03:37:49 +0000
committerMiles Bader <miles@gnu.org>1996-06-29 03:37:49 +0000
commit3e72eb7096fd2a350929df8c9ceab143d5b1ff0a (patch)
tree8c16f06daf38a3e53066337ef6d0fcc510927db8 /login
parent6a60a937573f8c77251e60850344c5cd53a439b4 (diff)
downloadglibc-3e72eb7096fd2a350929df8c9ceab143d5b1ff0a.tar.gz
(login): Initialize DATA so that setutent_r will actually do something.
Diffstat (limited to 'login')
-rw-r--r--login/login.c2
1 files changed, 1 insertions, 1 deletions
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));