svn commit: r292847 - head/usr.sbin/pw

Baptiste Daroussin bapt at FreeBSD.org
Tue Dec 29 00:02:10 UTC 2015


Author: bapt
Date: Tue Dec 29 00:02:08 2015
New Revision: 292847
URL: https://svnweb.freebsd.org/changeset/base/292847

Log:
  Remove useless assignement of linelen

Modified:
  head/usr.sbin/pw/pw_vpw.c

Modified: head/usr.sbin/pw/pw_vpw.c
==============================================================================
--- head/usr.sbin/pw/pw_vpw.c	Mon Dec 28 23:57:22 2015	(r292846)
+++ head/usr.sbin/pw/pw_vpw.c	Tue Dec 29 00:02:08 2015	(r292847)
@@ -70,7 +70,6 @@ vnextpwent(char const *nam, uid_t uid, i
 	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, i
 	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) {


More information about the svn-src-head mailing list