Selaa lähdekoodia

unzip: Fix possibly uninitialized variables

Turo Lamminen 7 vuotta sitten
vanhempi
commit
0bc259fd95
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      contrib/unzip/unzip.c

+ 2 - 2
contrib/unzip/unzip.c

@@ -204,7 +204,7 @@ local int unzlocal_getShort (pzlib_filefunc_def,filestream,pX)
     uLong *pX;
 {
     uLong x ;
-    int i;
+    int i = 0;
     int err;
 
     err = unzlocal_getByte(pzlib_filefunc_def,filestream,&i);
@@ -232,7 +232,7 @@ local int unzlocal_getLong (pzlib_filefunc_def,filestream,pX)
     uLong *pX;
 {
     uLong x ;
-    int i;
+    int i = 0;
     int err;
 
     err = unzlocal_getByte(pzlib_filefunc_def,filestream,&i);