Skip to content

Commit f002532

Browse files
bbolligitster
authored andcommitted
grep: print the pcre2_jit_on value
When pcre2_jit_on is neither 1 nor 0, the BUG() call printed the value of pcre1_jit_on. Print the value of pcre2_jit_on instead. Signed-off-by: Beat Bolli <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 0d0ac38 commit f002532

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)