* prevent crash in dotest in case a test file contains a line at the start

with only whitespace on it (such as webtbf/tw21873.pp)

git-svn-id: trunk@21119 -
This commit is contained in:
Jonas Maebe 2012-04-29 17:36:11 +00:00
parent aadeba4d1a
commit 9e0bc92b88

View File

@ -163,9 +163,9 @@ begin
readln(t,s); readln(t,s);
if Copy(s,1,3)=#$EF#$BB#$BF then if Copy(s,1,3)=#$EF#$BB#$BF then
delete(s,1,3); delete(s,1,3);
TrimB(s);
if s<>'' then if s<>'' then
begin begin
TrimB(s);
if s[1]='{' then if s[1]='{' then
begin begin
delete(s,1,1); delete(s,1,1);