attrib: Avoid crash when called without parameter.
If attrib is called without any parameter the variable originalname is used uninitialized. Signed-off-by: Bernhard Übelacker <bernhardu@mailbox.org> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
83f0de4487
commit
5ec1524326
@ -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++];
|
||||
|
Loading…
x
Reference in New Issue
Block a user