Commit 5ec15243 authored by Bernhard Übelacker's avatar Bernhard Übelacker Committed by Alexandre Julliard

attrib: Avoid crash when called without parameter.

If attrib is called without any parameter the variable originalname is used uninitialized. Signed-off-by: 's avatarBernhard Übelacker <bernhardu@mailbox.org> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 83f0de44
......@@ -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++];
......
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