summaryrefslogtreecommitdiff
path: root/perl.c
diff options
context:
space:
mode:
authorGisle Aas <gisle@activestate.com>2006-01-04 14:04:16 +0000
committerGisle Aas <gisle@activestate.com>2006-01-04 14:04:16 +0000
commit18916d0db6e8b0ac0abf09300cb33647d974ddc0 (patch)
tree310d7227ad38d4f86342bd66d2891c92c7716c6e /perl.c
parent6a245ed1e7ef6f728779f8328fb52e42b1aa0b8c (diff)
downloadperl-18916d0db6e8b0ac0abf09300cb33647d974ddc0.tar.gz
Introduce newSVpvs_share() macro.
Gets rid of some hardcoded string lengths. p4raw-id: //depot/perl@26646
Diffstat (limited to 'perl.c')
-rw-r--r--perl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl.c b/perl.c
index 1aff49da9f..728f91ce20 100644
--- a/perl.c
+++ b/perl.c
@@ -3453,7 +3453,7 @@ S_init_main_stash(pTHX)
/* We know that the string "main" will be in the global shared string
table, so it's a small saving to use it rather than allocate another
8 bytes. */
- PL_curstname = newSVpvn_share("main", 4, 0);
+ PL_curstname = newSVpvs_share("main");
gv = gv_fetchpv("main::",TRUE, SVt_PVHV);
/* If we hadn't caused another reference to "main" to be in the shared
string table above, then it would be worth reordering these two,