From: Miles Bader Date: Mon, 15 Jul 1996 16:25:44 +0000 (+0000) Subject: (logout): Initialize DATA to a state that will make setutent_r happy. X-Git-Tag: cvs/release-0-0~4 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=405e5e339e4cd65002968f350dec3445837632a2;p=glibc.git (logout): Initialize DATA to a state that will make setutent_r happy. --- 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;