summaryrefslogtreecommitdiffstats
path: root/pw/pw_vpw.c
diff options
context:
space:
mode:
authorGlen Barber <gjb@FreeBSD.org>2016-01-04 19:19:48 +0000
committerGlen Barber <gjb@FreeBSD.org>2016-01-04 19:19:48 +0000
commit403307ec3a577cd210c8241520fd8c7b3fd4fc5a (patch)
treecf36692dbaeeac0cf3eacb291f4ede63f9fa902c /pw/pw_vpw.c
parent470cc19f86d5b729b81d5fc775fc96e8b01180c5 (diff)
parent41aabc08b56276751e6538be1017556a832dc05a (diff)
downloadpw-darwin-403307ec3a577cd210c8241520fd8c7b3fd4fc5a.tar.gz
pw-darwin-403307ec3a577cd210c8241520fd8c7b3fd4fc5a.zip
MFH r289384-r293170
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'pw/pw_vpw.c')
-rw-r--r--pw/pw_vpw.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/pw/pw_vpw.c b/pw/pw_vpw.c
index a23c66e..2d1c75b 100644
--- a/pw/pw_vpw.c
+++ b/pw/pw_vpw.c
@@ -70,7 +70,6 @@ vnextpwent(char const *nam, uid_t uid, int doclose)
pw = NULL;
line = NULL;
linecap = 0;
- linelen = 0;
if (pwd_fp != NULL || (pwd_fp = fopen(getpwpath(_MASTERPASSWD), "r")) != NULL) {
while ((linelen = getline(&line, &linecap, pwd_fp)) > 0) {
@@ -153,7 +152,6 @@ vnextgrent(char const *nam, gid_t gid, int doclose)
gr = NULL;
line = NULL;
linecap = 0;
- linelen = 0;
if (grp_fp != NULL || (grp_fp = fopen(getgrpath(_GROUP), "r")) != NULL) {
while ((linelen = getline(&line, &linecap, grp_fp)) > 0) {