From 51bb4dd60a03f4a7f39b9ccc5ee6a773c230f2c2 Mon Sep 17 00:00:00 2001 From: nectar Date: Fri, 27 Oct 2000 18:27:07 +0000 Subject: Explicitly initialize _pw_passwd. --- lib/libc/gen/getpwent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libc/gen/getpwent.c b/lib/libc/gen/getpwent.c index 3c8620e..c46c5a2 100644 --- a/lib/libc/gen/getpwent.c +++ b/lib/libc/gen/getpwent.c @@ -78,7 +78,7 @@ extern int innetgr __P((const char *, const char *, const char *, const char *)) * in sync with that in `pwd_mkdb'. */ -static struct passwd _pw_passwd; /* password structure */ +static struct passwd _pw_passwd = { "", "", 0, 0, 0, "", "", "", "", 0, 0 }; static DB *_pw_db; /* password database */ static int _pw_keynum; /* key counter. no more records if -1 */ static int _pw_stayopen; /* keep fd's open */ -- cgit v1.1