aboutsummaryrefslogtreecommitdiff
path: root/login
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-07-15 16:25:44 +0000
committerMiles Bader <miles@gnu.org>1996-07-15 16:25:44 +0000
commit405e5e339e4cd65002968f350dec3445837632a2 (patch)
tree2b583c25cdf5326c2b1231131d3b8551f879f084 /login
parent* Makeconfig (rtld-installed-name): Set to ld.so.1. (diff)
downloadglibc-405e5e339e4cd65002968f350dec3445837632a2.tar.gz
glibc-405e5e339e4cd65002968f350dec3445837632a2.tar.bz2
glibc-405e5e339e4cd65002968f350dec3445837632a2.zip
(logout): Initialize DATA to a state that will make setutent_r happy.
Diffstat (limited to 'login')
-rw-r--r--login/logout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/login/logout.c b/login/logout.c
index bf45451eef..8575512e0e 100644
--- a/login/logout.c
+++ b/login/logout.c
@@ -25,7 +25,7 @@ Boston, MA 02111-1307, USA. */
int
logout (const char *line)
{
- struct utmp_data data;
+ struct utmp_data data = { ut_fd: -1 };
struct utmp tmp;
struct utmp *ut;
int result = 0;