Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Dec 2015 00:02:09 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r292847 - head/usr.sbin/pw
Message-ID:  <201512290002.tBT029ng098290@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201512290002.tBT029ng098290>