summaryrefslogtreecommitdiff
path: root/pp_ctl.c
diff options
context:
space:
mode:
authorYves Orton <demerphq@gmail.com>2022-09-03 15:59:20 +0200
committerYves Orton <demerphq@gmail.com>2022-09-05 07:57:17 +0200
commit59e36a288a938081959bdd2241f66aec60f8b7bf (patch)
tree6d747cae22c67d612bfcee0474e9b820826b748a /pp_ctl.c
parentd1a6746d8c2f7c8c63ed325c12310b651241c146 (diff)
downloadperl-59e36a288a938081959bdd2241f66aec60f8b7bf.tar.gz
pp_ctl - guard PL_unitcheckav setup logic from cases where the array is empty
Diffstat (limited to 'pp_ctl.c')
-rw-r--r--pp_ctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pp_ctl.c b/pp_ctl.c
index fb09d4f6c5..169b3ac6d5 100644
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -3750,7 +3750,7 @@ S_doeval_compile(pTHX_ U8 gimme, CV* outside, U32 seq, HV *hh)
}
}
- if (PL_unitcheckav) {
+ if (PL_unitcheckav && av_count(PL_unitcheckav)>0) {
OP *es = PL_eval_start;
if (in_require) {
call_list(PL_scopestack_ix, PL_unitcheckav);