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
5e300f06
Commit
5e300f06
authored
Aug 17, 2020
by
Gijs Vermeulen
Committed by
Alexandre Julliard
Aug 18, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fsutil: Initialize ret in hardlink() (Coverity).
Signed-off-by:
Gijs Vermeulen
<
gijsvrm@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a10824a0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
main.c
programs/fsutil/main.c
+1
-1
fsutil.c
programs/fsutil/tests/fsutil.c
+6
-0
No files found.
programs/fsutil/main.c
View file @
5e300f06
...
...
@@ -97,7 +97,7 @@ static int create_hardlink(int argc, WCHAR *argv[])
static
int
hardlink
(
int
argc
,
WCHAR
*
argv
[])
{
int
ret
;
int
ret
=
0
;
if
(
argc
>
2
)
{
...
...
programs/fsutil/tests/fsutil.c
View file @
5e300f06
...
...
@@ -63,6 +63,12 @@ static void test_hardlink(void)
ok
(
hfile
!=
INVALID_HANDLE_VALUE
,
"failed to create a file
\n
"
);
CloseHandle
(
hfile
);
rc
=
runcmd
(
"fsutil"
);
ok
(
rc
==
0
,
"failed to run fsutil
\n
"
);
rc
=
runcmd
(
"fsutil hardlink"
);
ok
(
rc
==
0
,
"failed to run fsutil hardlink
\n
"
);
rc
=
runcmd
(
"fsutil hardlink create link file"
);
ok
(
rc
==
0
,
"failed to create a hardlink
\n
"
);
...
...
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