Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
grep: print the pcre2_jit_on value
author
Beat Bolli
<dev+git@drbeat.li>
Mon, 22 Jul 2019 18:19:23 +0000
(20:19 +0200)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 23 Jul 2019 17:36:09 +0000
(10:36 -0700)
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>
grep.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
0d0ac38
)
diff --git
a/grep.c
b/grep.c
index 4db1510d167c9fc3cc7b129c90aa874a4c7c2b0f..c2bce6c2c7b6160331c18dff7744b6e180e1d922 100644
(file)
--- 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->pcre
1
_jit_on);
+ p->pcre
2
_jit_on);
}
}