summaryrefslogtreecommitdiff
path: root/grep.c
diff options
context:
space:
mode:
authorBeat Bolli <dev+git@drbeat.li>2019-07-22 18:19:23 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-07-23 17:36:09 (GMT)
commitf00253278481ea7d1d7bf3127aba9b529da34009 (patch)
tree079e6b57772520663843539836d035552152600e /grep.c
parent0d0ac3826a3bbb9247e39e12623bbcfdd722f24c (diff)
downloadgit-f00253278481ea7d1d7bf3127aba9b529da34009.zip
git-f00253278481ea7d1d7bf3127aba9b529da34009.tar.gz
git-f00253278481ea7d1d7bf3127aba9b529da34009.tar.bz2
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>
Diffstat (limited to 'grep.c')
-rw-r--r--grep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/grep.c b/grep.c
index 4db1510..c2bce6c 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);
}
}