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:
parent
836be829bd
commit
b8936b233c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user