mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-16 02:49:21 +02:00
* 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:
parent
aadeba4d1a
commit
9e0bc92b88
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user