瀏覽代碼

* 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