Browse Source

* get rid of unitialized warnings

git-svn-id: trunk@6013 -
pierre 18 years ago
parent
commit
18f3be105a
1 changed files with 4 additions and 0 deletions
  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;