Commit 5e300f06 authored by Gijs Vermeulen's avatar Gijs Vermeulen Committed by Alexandre Julliard

fsutil: Initialize ret in hardlink() (Coverity).

parent a10824a0
......@@ -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)
{
......
......@@ -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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment