diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-12-29 00:02:08 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-12-29 00:02:08 +0000 |
commit | 43df04c2007248c1825c092ee03363be924d69d4 (patch) | |
tree | 2288992a1bbbefac990445d782e8eb26e0fb1a62 /pw | |
parent | 653a82f1ba01a2c969ef6a5780535959dd2e78ab (diff) | |
download | pw-darwin-43df04c2007248c1825c092ee03363be924d69d4.tar.gz pw-darwin-43df04c2007248c1825c092ee03363be924d69d4.tar.zst pw-darwin-43df04c2007248c1825c092ee03363be924d69d4.zip |
Remove useless assignement of linelen
Diffstat (limited to 'pw')
-rw-r--r-- | pw/pw_vpw.c | 2 |
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) { |