Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Jun 2018 03:31:30 +0000 (UTC)
From:      Kyle Evans <kevans@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r335188 - head/usr.bin/grep
Message-ID:  <201806150331.w5F3VUZ2010010@repo.freebsd.org>

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



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