summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authornectar <nectar@FreeBSD.org>2000-10-27 18:27:07 +0000
committernectar <nectar@FreeBSD.org>2000-10-27 18:27:07 +0000
commit51bb4dd60a03f4a7f39b9ccc5ee6a773c230f2c2 (patch)
tree52391301d562cdcc46860fb3ba5c583218770683 /lib
parent6a129ddd436939512b11e067377ecec634a7cd4b (diff)
downloadFreeBSD-src-51bb4dd60a03f4a7f39b9ccc5ee6a773c230f2c2.zip
FreeBSD-src-51bb4dd60a03f4a7f39b9ccc5ee6a773c230f2c2.tar.gz
Explicitly initialize _pw_passwd.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/gen/getpwent.c2
1 files changed, 1 insertions, 1 deletions
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 */
OpenPOWER on IntegriCloud