summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pw
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2015-12-29 00:02:08 +0000
committerbapt <bapt@FreeBSD.org>2015-12-29 00:02:08 +0000
commit87d5fd23fe6e45640813b50835c6dea06cc46906 (patch)
tree5254c2521b1f74c5aaa68b1b3d628ca5a826421b /usr.sbin/pw
parentabb886fc3d3f64bb6e09305ad3a1f3e67adb0826 (diff)
downloadFreeBSD-src-87d5fd23fe6e45640813b50835c6dea06cc46906.zip
FreeBSD-src-87d5fd23fe6e45640813b50835c6dea06cc46906.tar.gz
Remove useless assignement of linelen
Diffstat (limited to 'usr.sbin/pw')
-rw-r--r--usr.sbin/pw/pw_vpw.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/usr.sbin/pw/pw_vpw.c b/usr.sbin/pw/pw_vpw.c
index a23c66e..2d1c75b 100644
--- a/usr.sbin/pw/pw_vpw.c
+++ b/usr.sbin/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) {
OpenPOWER on IntegriCloud