Remove useless assignement of linelen
This commit is contained in:
parent
36a8b62f3a
commit
4fc9390e7e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=292847
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user