From 45c0f1bbd8e1d6127575862074f6f6d0b990e48b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Lars=20Gullik=20Bj=C3=B8nnes?= Date: Sun, 16 Sep 2007 10:40:29 +0000 Subject: [PATCH] Ambigous else git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20308 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/support/minizip/unzip.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/support/minizip/unzip.c b/src/support/minizip/unzip.c index 842853f88b..4c48821ee3 100644 --- a/src/support/minizip/unzip.c +++ b/src/support/minizip/unzip.c @@ -602,11 +602,12 @@ local int unzlocal_GetCurrentFileInfoInternal ( /* we check the magic */ - if (err==UNZ_OK) + if (err==UNZ_OK) { if (unzlocal_getLong(&s->z_filefunc, s->filestream,&uMagic) != UNZ_OK) err=UNZ_ERRNO; else if (uMagic!=0x02014b50) err=UNZ_BADZIPFILE; + } if (unzlocal_getShort(&s->z_filefunc, s->filestream,&file_info.version) != UNZ_OK) err=UNZ_ERRNO; @@ -683,10 +684,12 @@ local int unzlocal_GetCurrentFileInfoInternal ( uSizeRead = extraFieldBufferSize; if (lSeek!=0) + { if (ZSEEK(s->z_filefunc, s->filestream,lSeek,ZLIB_FILEFUNC_SEEK_CUR)==0) lSeek=0; else err=UNZ_ERRNO; + } if ((file_info.size_file_extra>0) && (extraFieldBufferSize>0)) if (ZREAD(s->z_filefunc, s->filestream,extraField,uSizeRead)!=uSizeRead) err=UNZ_ERRNO; -- 2.39.2