Missing patch fragment, noted by Hugo.
Jarkko Hietaniemi [Tue, 9 Jul 2002 15:06:55 +0000 (15:06 +0000)]
p4raw-id: //depot/perl@17441

toke.c

diff --git a/toke.c b/toke.c
index 8d8ac54..bfc6436 100644 (file)
--- 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);