diff options
author | Nicholas Clark <nick@ccl4.org> | 2005-05-08 22:09:18 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2005-05-08 22:09:18 +0000 |
commit | ce5030a2e3d52efc311b379279a2db8219fc84b1 (patch) | |
tree | 53235fae81cd214056b3d086fd220cc688dd3a57 /mg.c | |
parent | 03e367892efb7218f1a5ccab257a8ceaf34be0f3 (diff) | |
download | perl-ce5030a2e3d52efc311b379279a2db8219fc84b1.tar.gz |
Perl_croak uses perl's printf, so can pass in SVs direct - no need for
SvPV and a %s format.
p4raw-id: //depot/perl@24420
Diffstat (limited to 'mg.c')
-rw-r--r-- | mg.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -1927,12 +1927,11 @@ Perl_vivify_defelem(pTHX_ SV *sv) return; if (mg->mg_obj) { SV *ahv = LvTARG(sv); - STRLEN n_a; HE *he = hv_fetch_ent((HV*)ahv, mg->mg_obj, TRUE, 0); if (he) value = HeVAL(he); if (!value || value == &PL_sv_undef) - Perl_croak(aTHX_ PL_no_helem, SvPV(mg->mg_obj, n_a)); + Perl_croak(aTHX_ PL_no_helem_sv, mg->mg_obj); } else { AV* av = (AV*)LvTARG(sv); |