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>
(cherry picked from commit 5ec1524326
)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
This commit is contained in:
parent
cb8fde193b
commit
d2392af664
|
@ -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…
Reference in New Issue