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
77fc01d3
Commit
77fc01d3
authored
Nov 29, 2020
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Nov 30, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd: Avoid casting a const away.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
70567d9f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
builtins.c
programs/cmd/builtins.c
+3
-2
No files found.
programs/cmd/builtins.c
View file @
77fc01d3
...
...
@@ -1968,6 +1968,7 @@ static void WCMD_parse_line(CMD_LIST *cmdStart,
BOOL
thisduplicate
=
FALSE
;
BOOL
anyduplicates
=
FALSE
;
int
totalfound
;
static
WCHAR
emptyW
[]
=
L""
;
/* Skip lines if requested */
if
(
*
forf_skip
)
{
...
...
@@ -1998,7 +1999,7 @@ static void WCMD_parse_line(CMD_LIST *cmdStart,
for
(
varoffset
=
0
;
varidx
>=
0
&&
varoffset
<
totalfound
&&
(((
varidx
%
26
)
+
varoffset
)
<
26
);
varoffset
++
)
{
forloopcontext
.
variable
[
varidx
+
varoffset
]
=
(
WCHAR
*
)
null
W
;
forloopcontext
.
variable
[
varidx
+
varoffset
]
=
empty
W
;
}
/* Loop extracting the tokens
...
...
@@ -2048,7 +2049,7 @@ static void WCMD_parse_line(CMD_LIST *cmdStart,
int
i
;
for
(
i
=
varidx
;
i
<
MAX_FOR_VARIABLES
;
i
++
)
{
if
((
forloopcontext
.
variable
[
i
]
!=
oldcontext
.
variable
[
i
])
&&
(
forloopcontext
.
variable
[
i
]
!=
null
W
))
{
(
forloopcontext
.
variable
[
i
]
!=
empty
W
))
{
heap_free
(
forloopcontext
.
variable
[
i
]);
}
}
...
...
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