Explorar o código

unzip: Remove dead assignment

Turo Lamminen %!s(int64=7) %!d(string=hai) anos
pai
achega
983e52e308
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  1. 1 3
      contrib/unzip/unzip.c

+ 1 - 3
contrib/unzip/unzip.c

@@ -725,9 +725,7 @@ local int unzlocal_GetCurrentFileInfoInternal (file,
 
 
         if (lSeek!=0)
         if (lSeek!=0)
         {
         {
-            if (ZSEEK(s->z_filefunc, s->filestream,lSeek,ZLIB_FILEFUNC_SEEK_CUR)==0)
-                lSeek=0;
-            else
+            if (ZSEEK(s->z_filefunc, s->filestream,lSeek,ZLIB_FILEFUNC_SEEK_CUR)!=0)
                 err=UNZ_ERRNO;
                 err=UNZ_ERRNO;
         }
         }
         if ((file_info.size_file_comment>0) && (commentBufferSize>0))
         if ((file_info.size_file_comment>0) && (commentBufferSize>0))