svn commit: r317701 - head/usr.bin/grep/regex

Ed Maste emaste at FreeBSD.org
Tue May 2 20:08:06 UTC 2017


Author: emaste
Date: Tue May  2 20:08:04 2017
New Revision: 317701
URL: https://svnweb.freebsd.org/changeset/base/317701

Log:
  bsdgrep: correct test sense from r317700
  
  Kyle's change in review D10098 was correct. I introduced the error when
  extracting a portion of that change.

Modified:
  head/usr.bin/grep/regex/tre-fastmatch.c

Modified: head/usr.bin/grep/regex/tre-fastmatch.c
==============================================================================
--- head/usr.bin/grep/regex/tre-fastmatch.c	Tue May  2 19:56:42 2017	(r317700)
+++ head/usr.bin/grep/regex/tre-fastmatch.c	Tue May  2 20:08:04 2017	(r317701)
@@ -715,7 +715,7 @@ badpat:
       if (fg->wescmap != NULL)
 	{
 	  fg->escmap = calloc(fg->len, sizeof(bool));
-	  if (fg->escmap != NULL)
+	  if (fg->escmap == NULL)
 	    {
 	      tre_free_fast(fg);
 	      return REG_ESPACE;


More information about the svn-src-head mailing list