mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 13:56:05 +00:00
[LABEL] wmain(): Initialize 'szBuffer' (#2867)
Detected by Cppcheck: uninitvar.
This commit is contained in:
parent
938df97b54
commit
9a614c82e1
1 changed files with 2 additions and 5 deletions
|
@ -142,8 +142,8 @@ PromptYesNo(VOID)
|
||||||
int wmain(int argc, WCHAR *argv[])
|
int wmain(int argc, WCHAR *argv[])
|
||||||
{
|
{
|
||||||
WCHAR szRootPath[] = L" :\\";
|
WCHAR szRootPath[] = L" :\\";
|
||||||
WCHAR szBuffer[80];
|
WCHAR szBuffer[80] = L"";
|
||||||
WCHAR szLabel[80];
|
WCHAR szLabel[80] = L"";
|
||||||
WCHAR szOldLabel[80];
|
WCHAR szOldLabel[80];
|
||||||
DWORD dwSerialNr;
|
DWORD dwSerialNr;
|
||||||
INT len, i;
|
INT len, i;
|
||||||
|
@ -151,9 +151,6 @@ int wmain(int argc, WCHAR *argv[])
|
||||||
/* Initialize the Console Standard Streams */
|
/* Initialize the Console Standard Streams */
|
||||||
ConInitStdStreams();
|
ConInitStdStreams();
|
||||||
|
|
||||||
/* set empty label string */
|
|
||||||
szLabel[0] = UNICODE_NULL;
|
|
||||||
|
|
||||||
/* print help */
|
/* print help */
|
||||||
if (argc > 1 && wcscmp(argv[1], L"/?") == 0)
|
if (argc > 1 && wcscmp(argv[1], L"/?") == 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue