workaround a problem with the harmattan gcc
[drnoksnes] / unzip.c
diff --git a/unzip.c b/unzip.c
index db32bd3..4448d85 100644 (file)
--- a/unzip.c
+++ b/unzip.c
@@ -204,8 +204,8 @@ local int unzlocal_getShort (pzlib_filefunc_def,filestream,pX)
     uLong *pX;
 {
     uLong x ;
-    int i;
-    int err;
+    int i = 0;
+    int err = UNZ_OK;
 
     err = unzlocal_getByte(pzlib_filefunc_def,filestream,&i);
     x = (uLong)i;
@@ -232,8 +232,8 @@ local int unzlocal_getLong (pzlib_filefunc_def,filestream,pX)
     uLong *pX;
 {
     uLong x ;
-    int i;
-    int err;
+    int i = 0;
+    int err = UNZ_OK;
 
     err = unzlocal_getByte(pzlib_filefunc_def,filestream,&i);
     x = (uLong)i;