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:
emaste 2017-05-02 20:08:04 +00:00
parent 836be829bd
commit b8936b233c

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;