Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
f368868a
Commit
f368868a
authored
Jan 16, 2006
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use brackets to avoid ambiguos else
parent
aa45359c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
modules/gui/skins2/unzip/unzip.c
modules/gui/skins2/unzip/unzip.c
+8
-2
No files found.
modules/gui/skins2/unzip/unzip.c
View file @
f368868a
...
...
@@ -608,10 +608,12 @@ local int unzlocal_GetCurrentFileInfoInternal (file,
/* we check the magic */
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
;
...
...
@@ -688,10 +690,12 @@ local int unzlocal_GetCurrentFileInfoInternal (file,
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
;
...
...
@@ -713,10 +717,12 @@ local int unzlocal_GetCurrentFileInfoInternal (file,
uSizeRead
=
commentBufferSize
;
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_comment
>
0
)
&&
(
commentBufferSize
>
0
))
if
(
ZREAD
(
s
->
z_filefunc
,
s
->
filestream
,
szComment
,
uSizeRead
)
!=
uSizeRead
)
err
=
UNZ_ERRNO
;
...
...
@@ -977,11 +983,12 @@ local int unzlocal_CheckCurrentFileCoherencyHeader (s,piSizeVar,
if
(
err
==
UNZ_OK
)
{
if
(
unzlocal_getLong
(
&
s
->
z_filefunc
,
s
->
filestream
,
&
uMagic
)
!=
UNZ_OK
)
err
=
UNZ_ERRNO
;
else
if
(
uMagic
!=
0x04034b50
)
err
=
UNZ_BADZIPFILE
;
}
if
(
unzlocal_getShort
(
&
s
->
z_filefunc
,
s
->
filestream
,
&
uData
)
!=
UNZ_OK
)
err
=
UNZ_ERRNO
;
/*
...
...
@@ -1534,7 +1541,6 @@ extern int ZEXPORT unzGetGlobalComment (file, szComment, uSizeBuf)
char
*
szComment
;
uLong
uSizeBuf
;
{
int
err
=
UNZ_OK
;
unz_s
*
s
;
uLong
uReadThis
;
if
(
file
==
NULL
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment