소스 검색

Avoid GPF if currPath is empty in AddPath method, as this is accepted and handled later

git-svn-id: trunk@43306 -
pierre 5 년 전
부모
커밋
5bfebeea4e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      compiler/cfileutl.pas

+ 1 - 1
compiler/cfileutl.pas

@@ -1076,7 +1076,7 @@ end;
          DePascalQuote(currPath);
          { GNU LD convention: if library search path starts with '=', it's relative to the
            sysroot; otherwise, interpret it as a regular path }
-         if currPath[1]='=' then
+         if (length(currPath) >0) and (currPath[1]='=') then
            currPath:=sysroot+FixPath(copy(currPath,2,length(currPath)-1),false)
          else
            currPath:=sysroot+FixPath(currPath,false);