summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2002-07-09 15:06:55 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2002-07-09 15:06:55 +0000
commit6f27f9a7eff1b9dfc549cd13594b6977d1eb967d (patch)
treed48fadd36798e01dad8aee108cf996bf237c0228 /toke.c
parent8d1a09d3fcc3c99bd6f7044b2c10e5acf22d14d5 (diff)
downloadperl-6f27f9a7eff1b9dfc549cd13594b6977d1eb967d.tar.gz
Missing patch fragment, noted by Hugo.
p4raw-id: //depot/perl@17441
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 8d8ac54eeb..bfc6436640 100644
--- a/toke.c
+++ b/toke.c
@@ -450,7 +450,7 @@ Perl_lex_start(pTHX_ SV *line)
if (SvREADONLY(PL_linestr))
PL_linestr = sv_2mortal(newSVsv(PL_linestr));
s = SvPV(PL_linestr, len);
- if (len && s[len-1] != ';') {
+ if (!len || s[len-1] != ';') {
if (!(SvFLAGS(PL_linestr) & SVs_TEMP))
PL_linestr = sv_2mortal(newSVsv(PL_linestr));
sv_catpvn(PL_linestr, "\n;", 2);