summaryrefslogtreecommitdiff
path: root/perl.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-06-30 11:20:33 +0000
committerNicholas Clark <nick@ccl4.org>2005-06-30 11:20:33 +0000
commite6830b1398c4e7ce4800aa72b564ebd81702e14c (patch)
tree51ec8bed88c687781e37f6bcf0d7a5c81bb5017b /perl.c
parentcd1c2c6905a80e547b6f46f140e4e8bf42c8dc0d (diff)
downloadperl-e6830b1398c4e7ce4800aa72b564ebd81702e14c.tar.gz
Why use Perl_form and newSVpv when newSVpvf will do it in one?
p4raw-id: //depot/perl@25021
Diffstat (limited to 'perl.c')
-rw-r--r--perl.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/perl.c b/perl.c
index cb82691e50..e573425f1d 100644
--- a/perl.c
+++ b/perl.c
@@ -332,12 +332,8 @@ perl_construct(pTHXx)
PL_stashcache = newHV();
- PL_patchlevel = newSVpv(
- Perl_form(aTHX_ "%d.%d.%d",
- (int)PERL_REVISION,
- (int)PERL_VERSION,
- (int)PERL_SUBVERSION ), 0
- );
+ PL_patchlevel = Perl_newSVpvf(aTHX_ "%d.%d.%d", (int)PERL_REVISION,
+ (int)PERL_VERSION, (int)PERL_SUBVERSION);
#ifdef HAS_MMAP
if (!PL_mmap_page_size) {