svn commit: r335188 - head/usr.bin/grep

Kyle Evans kevans at FreeBSD.org
Fri Jun 15 03:31:31 UTC 2018


Author: kevans
Date: Fri Jun 15 03:31:30 2018
New Revision: 335188
URL: https://svnweb.freebsd.org/changeset/base/335188

Log:
  bsdgrep(1): Remove redundant initialization; unconditionally assigned later

Modified:
  head/usr.bin/grep/util.c

Modified: head/usr.bin/grep/util.c
==============================================================================
--- head/usr.bin/grep/util.c	Fri Jun 15 03:28:05 2018	(r335187)
+++ head/usr.bin/grep/util.c	Fri Jun 15 03:31:30 2018	(r335188)
@@ -317,7 +317,6 @@ procfile(const char *fn)
 	pc.cntlines = false;
 	memset(&mc, 0, sizeof(mc));
 	mc.printmatch = true;
-	line_matched = false;
 	if ((pc.binary && binbehave == BINFILE_BIN) || cflag || qflag ||
 	    lflag || Lflag)
 		mc.printmatch = false;


More information about the svn-src-all mailing list