Skip to content

Commit 6d3141b

Browse files
committed
pp_ctl.c: Use macro for when param known non-NULL
There are two versions of this macro; the more general one which checks for sanity; and another, to be used when its already known that things are sane. This commit converts to use the latter, as we do know its sane here.
1 parent a5020ef commit 6d3141b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pp_ctl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ PP(pp_regcomp)
172172
}
173173

174174
/* handle the empty pattern */
175-
if (!RX_PRELEN(PM_GETRE(pm)) && PL_curpm) {
175+
if (!RX_PRELEN(PM_GETRE_raw(pm)) && PL_curpm) {
176176
if (PL_curpm == PL_reg_curpm) {
177177
if (PL_curpm_under && PL_curpm_under == PL_reg_curpm) {
178178
croak("Infinite recursion via empty pattern");

0 commit comments

Comments
 (0)