소스 검색

* 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;