Skip to content

Commit 47eebd2

Browse files
avargitster
authored andcommitted
grep/pcre2: correct reference to grep_init() in comment
Correct a comment added in 513f2b0 (grep: make PCRE2 aware of custom allocator, 2019-10-16). This comment was never correct in git.git, but was consistent with an older version of the patch[1]. 1. https://lore.kernel.org/git/[email protected]/ Signed-off-by: Ævar Arnfjörð Bjarmason <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 1cfc5a8 commit 47eebd2

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
@@ -373,7 +373,7 @@ static void compile_pcre2_pattern(struct grep_pat *p, const struct grep_opt *opt
373373
int patinforet;
374374
size_t jitsizearg;
375375

376-
/* pcre2_global_context is initialized in append_grep_pattern */
376+
/* pcre2_global_context is initialized in grep_init */
377377
if (opt->ignore_case) {
378378
if (!opt->ignore_locale && has_non_ascii(p->pattern)) {
379379
if (!pcre2_global_context)

0 commit comments

Comments
 (0)