From: Beat Bolli Date: Mon, 22 Jul 2019 18:19:23 +0000 (+0200) Subject: grep: print the pcre2_jit_on value X-Git-Tag: v2.23.0-rc0~5^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f00253278481ea7d1d7bf3127aba9b529da34009;p=thirdparty%2Fgit.git 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 Signed-off-by: Junio C Hamano --- diff --git a/grep.c b/grep.c index 4db1510d16..c2bce6c2c7 100644 --- a/grep.c +++ b/grep.c @@ -559,7 +559,7 @@ static void compile_pcre2_pattern(struct grep_pat *p, const struct grep_opt *opt pcre2_jit_stack_assign(p->pcre2_match_context, NULL, p->pcre2_jit_stack); } else if (p->pcre2_jit_on != 0) { BUG("The pcre2_jit_on variable should be 0 or 1, not %d", - p->pcre1_jit_on); + p->pcre2_jit_on); } }