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.
This commit is contained in:
Ed Maste 2017-05-02 20:08:04 +00:00
parent e0780d5479
commit a535623c78
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=317701

View File

@ -715,7 +715,7 @@ tre_compile_fast(fastmatch_t *fg, const tre_char_t *pat, size_t n,
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;