Browse Source

* get rid of unitialized warnings

git-svn-id: trunk@6013 -
pierre 18 năm trước cách đây
mục cha
commit
18f3be105a
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      compiler/cutils.pas

+ 4 - 0
compiler/cutils.pas

@@ -1134,6 +1134,8 @@ implementation
 
     begin
       minilzw_encode:='';
+      fillchar(data,sizeof(data),#0);
+      fillchar(previous,sizeof(previous),#0);
       if s<>'' then
         begin
           lzwptr:=127;
@@ -1191,6 +1193,8 @@ implementation
 
     begin
       minilzw_decode:='';
+      fillchar(data,sizeof(data),#0);
+      fillchar(previous,sizeof(previous),#0);
       if s<>'' then
         begin
           lzwptr:=127;