2
0
Эх сурвалжийг харах

* avoid compiler warning about uninitialized variable

git-svn-id: trunk@26441 -
florian 11 жил өмнө
parent
commit
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