소스 검색

Avoid possible warning about uninitialized srsym variable

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

+ 2 - 2
compiler/symtable.pas

@@ -4304,6 +4304,8 @@ implementation
         hashedid.id:=class_helper_prefix+s;
         stackitem:=symtablestack.stack;
         result:=false;
+        srsym:=nil;
+        srsymtable:=nil;
         founddefowner:=nil;
         while assigned(stackitem) do
           begin
@@ -4363,8 +4365,6 @@ implementation
             addsymref(srsym);
             exit;
           end;
-        srsym:=nil;
-        srsymtable:=nil;
       end;