Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
bfe6fe67
Commit
bfe6fe67
authored
Nov 02, 2008
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Nov 03, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cabinet: Do not cast NULL.
parent
66006129
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
fdi.c
dlls/cabinet/fdi.c
+5
-5
No files found.
dlls/cabinet/fdi.c
View file @
bfe6fe67
...
...
@@ -925,7 +925,7 @@ static void fdi_Ziphuft_free(HFDI hfdi, struct Ziphuft *t)
/* Go through linked list, freeing from the allocated (t[-1]) address. */
p
=
t
;
while
(
p
!=
(
struct
Ziphuft
*
)
NULL
)
while
(
p
!=
NULL
)
{
q
=
(
--
p
)
->
v
.
t
;
PFDI_FREE
(
hfdi
,
p
);
...
...
@@ -970,7 +970,7 @@ struct Ziphuft **t, cab_LONG *m, fdi_decomp_state *decomp_state)
}
while
(
--
i
);
if
(
ZIP
(
c
)[
0
]
==
n
)
/* null input--all zero length codes */
{
*
t
=
(
struct
Ziphuft
*
)
NULL
;
*
t
=
NULL
;
*
m
=
0
;
return
0
;
}
...
...
@@ -1018,8 +1018,8 @@ struct Ziphuft **t, cab_LONG *m, fdi_decomp_state *decomp_state)
p
=
ZIP
(
v
);
/* grab values in bit order */
h
=
-
1
;
/* no tables yet--level -1 */
w
=
l
[
-
1
]
=
0
;
/* no bits decoded yet */
ZIP
(
u
)[
0
]
=
(
struct
Ziphuft
*
)
NULL
;
/* just to keep compilers happy */
q
=
(
struct
Ziphuft
*
)
NULL
;
/* ditto */
ZIP
(
u
)[
0
]
=
NULL
;
/* just to keep compilers happy */
q
=
NULL
;
/* ditto */
z
=
0
;
/* ditto */
/* go through the bit lengths (k already is bits in shortest code) */
...
...
@@ -1061,7 +1061,7 @@ struct Ziphuft **t, cab_LONG *m, fdi_decomp_state *decomp_state)
return
3
;
/* not enough memory */
}
*
t
=
q
+
1
;
/* link to list for Ziphuft_free() */
*
(
t
=
&
(
q
->
v
.
t
))
=
(
struct
Ziphuft
*
)
NULL
;
*
(
t
=
&
(
q
->
v
.
t
))
=
NULL
;
ZIP
(
u
)[
h
]
=
++
q
;
/* table starts after link */
/* connect to last table, if there is one */
...
...
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