diff options
author | Nicholas Clark <nick@ccl4.org> | 2007-10-06 12:22:58 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2007-10-06 12:22:58 +0000 |
commit | 550e2ce03d201c2e16d6755c5e8b7feb3b2afe06 (patch) | |
tree | 068e2a1d654ae7f251a9663cad65a90c07fecbc7 /perlio.c | |
parent | dc7a1c0287185201962596e8d86ebf149649d565 (diff) | |
download | perl-550e2ce03d201c2e16d6755c5e8b7feb3b2afe06.tar.gz |
Directly create the SV with Perl_newSVpvf() rather than using
Perl_catSVpvf() to extend a zero-length SV.
p4raw-id: //depot/perl@32042
Diffstat (limited to 'perlio.c')
-rw-r--r-- | perlio.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -507,9 +507,8 @@ PerlIO_debug(const char *fmt, ...) #else const char *s = CopFILE(PL_curcop); STRLEN len; - SV * const sv = newSVpvs(""); - Perl_sv_catpvf(aTHX_ sv, "%s:%" IVdf " ", s ? s : "(none)", - (IV) CopLINE(PL_curcop)); + SV * const sv = Perl_newSVpvf(aTHX_ "%s:%" IVdf " ", s ? s : "(none)", + (IV) CopLINE(PL_curcop)); Perl_sv_vcatpvf(aTHX_ sv, fmt, &ap); s = SvPV_const(sv, len); |