소스 검색

* avoid compiler warning about uninitialized variable

git-svn-id: trunk@26441 -
florian 11 년 전
부모
커밋
fe7238bdf1
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      compiler/pmodules.pas

+ 2 - 0
compiler/pmodules.pas

@@ -1918,6 +1918,8 @@ type
          init_procinfo:=nil;
          finalize_procinfo:=nil;
          resources_used:=false;
+         { make the compiler happy and avoid an uninitialized variable warning on Setlength(sc,length(sc)+1); }
+         sc:=nil;
 
          { DLL defaults to create reloc info }
          if islibrary then