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;
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to