pastojs: fixed uninitialized result

git-svn-id: trunk@40620 -
This commit is contained in:
Mattias Gaertner 2018-12-23 16:34:29 +00:00
parent 1d7f5fa812
commit 765fdb7641
2 changed files with 4 additions and 1 deletions

View File

@ -374,6 +374,9 @@ ToDos:
- functions
- rtti
- bug: DoIt(typeinfo(i)) where DoIt is in another unit and has TTypeInfo
- $OPTIMIZATION ON|OFF
- $optimization REMOVEEMPTYPROCS
- $optimization REMOVEEMPTYPROCS,RemoveNotUsedDeclarations-
- setlength(dynarray) modeswitch to not create a copy
- 'new', 'Function' -> class var use .prototype
- static arrays

View File

@ -1896,7 +1896,7 @@ var
// search in Dir for pp, pas, p times given case, lower case, upper case
begin
Dir:=IncludeTrailingPathDelimiter(Dir);
if IndexOfFile(SearchedDirs,Dir)>=0 then exit;
if IndexOfFile(SearchedDirs,Dir)>=0 then exit(false);
SearchedDirs.Add(Dir);
Filename:=Dir+aUnitname+'.pp';
if SearchLowUpCase(Filename) then exit(true);