forked from Perl/perl5
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
S_concat_pat: share same n across recursive calls
n looks like a fill pointer for pRExC_state->code_blocks->cb. It is a local variable in S_concat_pat that is incremented in several places. S_concat_pat also calls itself, but the recursive call has its own n. That feels wrong. Use a pointer to make all recursive invocations of S_concat_pat share the same n, which is actually "allocated" at the top level (where S_concat_pat is invoked with pn = NULL). Cf. Perl#16627.
- Loading branch information
Showing
1 changed file
with
22 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters