Skip to content

Commit 2f4af84

Browse files
committed
Merge branch 'ab/pcre-v2'
Hotfix for a topic already in 'master'. * ab/pcre-v2: grep: fix erroneously copy/pasted variable in check/assert pattern
2 parents 6bbd512 + 674ad93 commit 2f4af84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

grep.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ static void compile_pcre2_pattern(struct grep_pat *p, const struct grep_opt *opt
508508
if (!p->pcre2_jit_stack)
509509
die("Couldn't allocate PCRE2 JIT stack");
510510
p->pcre2_match_context = pcre2_match_context_create(NULL);
511-
if (!p->pcre2_jit_stack)
511+
if (!p->pcre2_match_context)
512512
die("Couldn't allocate PCRE2 match context");
513513
pcre2_jit_stack_assign(p->pcre2_match_context, NULL, p->pcre2_jit_stack);
514514
} else if (p->pcre2_jit_on != 0) {

0 commit comments

Comments
 (0)