summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2007-10-18 17:15:16 +0000
committerNicholas Clark <nick@ccl4.org>2007-10-18 17:15:16 +0000
commit9ff8e8065ea8557fda504cf7c2337bef185cd00f (patch)
treef580ff4e8abf589144e19925a9032dadbe6cec41 /toke.c
parent5e0ab564a19e208af30e5d05d5a03aae32025de6 (diff)
downloadperl-9ff8e8065ea8557fda504cf7c2337bef185cd00f.tar.gz
Change newSVpv() to newSVpvn() where we know the length is non-zero, as
newSVpvn() will be fractionally more efficient. p4raw-id: //depot/perl@32135
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toke.c b/toke.c
index eb7c18cb06..f8d207c292 100644
--- a/toke.c
+++ b/toke.c
@@ -5346,7 +5346,7 @@ Perl_yylex(pTHX)
#ifdef PERL_MAD
if (PL_madskills && !PL_thistoken) {
char *start = SvPVX(PL_linestr) + PL_realtokenstart;
- PL_thistoken = newSVpv(start,s - start);
+ PL_thistoken = newSVpvn(start,s - start);
PL_realtokenstart = s - SvPVX(PL_linestr);
}
#endif