summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorPaul "LeoNerd" Evans <leonerd@leonerd.org.uk>2023-02-12 18:21:29 +0000
committerPaul Evans <leonerd@leonerd.org.uk>2023-02-12 19:46:35 +0000
commit5e2af7a00aef25d0f21505fb700447117af982cc (patch)
tree9d9499c1c75d03b009a008169efb934f6723de56 /sv.c
parent2a51adc4c2afa95102ece84fb829fa1ec01aee0e (diff)
downloadperl-5e2af7a00aef25d0f21505fb700447117af982cc.tar.gz
Must call Perl_croak() on the proto_perl, not the target perl, when failing during sv_inc()
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sv.c b/sv.c
index ce1cc03316..d1cd37ab51 100644
--- a/sv.c
+++ b/sv.c
@@ -14556,7 +14556,7 @@ S_sv_dup_common(pTHX_ const SV *const ssv, CLONE_PARAMS *const param)
switch (sv_type) {
default:
- Perl_croak(aTHX_ "Bizarre SvTYPE [%" IVdf "]", (IV)SvTYPE(ssv));
+ Perl_croak(param->proto_perl, "Bizarre SvTYPE [%" IVdf "]", (IV)SvTYPE(ssv));
NOT_REACHED; /* NOTREACHED */
break;