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 <dev+git@drbeat.li> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Beat Bolli committed
Jul 22, 2019 at 20:19 UTC
f00253278481ea7d1d7bf3127aba9b529da34009
1 file changed
+1
-1
grep.c
+1
-1
@@ -559,7 +559,7 @@ static void compile_pcre2_pattern(struct grep_pat *p, const struct grep_opt *opt
559
pcre2_jit_stack_assign(p->pcre2_match_context, NULL, p->pcre2_jit_stack);
560
} else if (p->pcre2_jit_on != 0) {
561
BUG("The pcre2_jit_on variable should be 0 or 1, not %d",
562
- p->pcre1_jit_on);
562
+ p->pcre2_jit_on);
563
}
564
}
565