Skip to content

Commit 7b70d46

Browse files
committed
Merge branch 'bb/grep-pcre2-bug-message-fix'
BUG() message fix. The codepath may want to just simply be removed, though. * bb/grep-pcre2-bug-message-fix: grep: print the pcre2_jit_on value
2 parents 3034dab + f002532 commit 7b70d46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

grep.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ static void compile_pcre2_pattern(struct grep_pat *p, const struct grep_opt *opt
559559
pcre2_jit_stack_assign(p->pcre2_match_context, NULL, p->pcre2_jit_stack);
560560
} else if (p->pcre2_jit_on != 0) {
561561
BUG("The pcre2_jit_on variable should be 0 or 1, not %d",
562-
p->pcre1_jit_on);
562+
p->pcre2_jit_on);
563563
}
564564
}
565565

0 commit comments

Comments
 (0)