mirror of
				https://gitlab.com/freepascal.org/fpc/source.git
				synced 2025-11-04 01:19:38 +01: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);
 | 
			
		||||
     if Copy(s,1,3)=#$EF#$BB#$BF then
 | 
			
		||||
       delete(s,1,3);
 | 
			
		||||
     TrimB(s);
 | 
			
		||||
     if s<>'' then
 | 
			
		||||
      begin
 | 
			
		||||
        TrimB(s);
 | 
			
		||||
        if s[1]='{' then
 | 
			
		||||
         begin
 | 
			
		||||
           delete(s,1,1);
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user