Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'bb/grep-pcre2-bug-message-fix'
author
Junio C Hamano
<gitster@pobox.com>
Mon, 29 Jul 2019 19:39:13 +0000
(12:39 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 29 Jul 2019 19:39:13 +0000
(12:39 -0700)
BUG() message fix.
The codepath may want to just simply be removed, though.
* bb/grep-pcre2-bug-message-fix:
grep: print the pcre2_jit_on value
grep.c
patch
|
blob
|
history
raw
(from parent 1:
3034dab
)
diff --git
a/grep.c
b/grep.c
index f7c3a5803e8ea0bf2c609e9eeec6764217641cfc..cd952ef5d3cca5ab66f432736881d98a94323014 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);
}
}