Browse Source

* set result of searchsym_in_record() in case nothing was found

git-svn-id: trunk@17161 -
Jonas Maebe 14 years ago
parent
commit
10674153cf
1 changed files with 1 additions and 0 deletions
  1. 1 0
      compiler/symtable.pas

+ 1 - 0
compiler/symtable.pas

@@ -2199,6 +2199,7 @@ implementation
       var
       var
         hashedid : THashedIDString;
         hashedid : THashedIDString;
       begin
       begin
+        result:=false;
         hashedid.id:=s;
         hashedid.id:=s;
         srsymtable:=recordh.symtable;
         srsymtable:=recordh.symtable;
         srsym:=tsym(srsymtable.FindWithHash(hashedid));
         srsym:=tsym(srsymtable.FindWithHash(hashedid));