mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-19 13:40:59 +08:00
(logout): Initialize DATA to a state that will make setutent_r happy.
This commit is contained in:
parent
391763e755
commit
405e5e339e
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user