Browse Source

* 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 -

Jonas Maebe 13 years ago
parent
commit
9e0bc92b88
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tests/utils/testu.pp

+ 1 - 1
tests/utils/testu.pp

@@ -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);