浏览代码

* get rid of unitialized warnings

git-svn-id: trunk@6013 -
pierre 18 年之前
父节点
当前提交
18f3be105a
共有 1 个文件被更改,包括 4 次插入0 次删除
  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;