diff options
author | Paul "LeoNerd" Evans <leonerd@leonerd.org.uk> | 2023-02-12 18:21:29 +0000 |
---|---|---|
committer | Paul Evans <leonerd@leonerd.org.uk> | 2023-02-12 19:46:35 +0000 |
commit | 5e2af7a00aef25d0f21505fb700447117af982cc (patch) | |
tree | 9d9499c1c75d03b009a008169efb934f6723de56 /sv.c | |
parent | 2a51adc4c2afa95102ece84fb829fa1ec01aee0e (diff) | |
download | perl-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |