From 6f27f9a7eff1b9dfc549cd13594b6977d1eb967d Mon Sep 17 00:00:00 2001 From: Jarkko Hietaniemi Date: Tue, 9 Jul 2002 15:06:55 +0000 Subject: Missing patch fragment, noted by Hugo. p4raw-id: //depot/perl@17441 --- toke.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toke.c') 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); -- cgit v1.2.1