Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 May 2017 20:08:05 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r317701 - head/usr.bin/grep/regex
Message-ID:  <201705022008.v42K85t6041423@repo.freebsd.org>

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



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