Skip to content
Snippets Groups Projects
Commit 5ec15243 authored by Bernhard Übelacker's avatar Bernhard Übelacker Committed by Alexandre Julliard
Browse files

attrib: Avoid crash when called without parameter.


If attrib is called without any parameter the variable originalname
is used uninitialized.

Signed-off-by: default avatarBernhard Übelacker <bernhardu@mailbox.org>
Signed-off-by: Alexandre Julliard's avatarAlexandre Julliard <julliard@winehq.org>
parent 83f0de44
Branches
Tags
No related merge requests found
......@@ -252,7 +252,7 @@ int __cdecl wmain(int argc, WCHAR *argv[])
}
/* By default all files from current directory are taken into account */
lstrcpyW(name, L"*");
lstrcpyW(originalname, L".\\*");
while (i < argc) {
WCHAR *param = argv[i++];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment