summaryrefslogtreecommitdiff
path: root/login/logout.c
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/logout.c
parent391763e7551da454700b1749647ded3cdf7366ec (diff)
downloadglibc-405e5e339e4cd65002968f350dec3445837632a2.tar.gz
(logout): Initialize DATA to a state that will make setutent_r happy.
Diffstat (limited to 'login/logout.c')
-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;