diff --git a/reactos/base/shell/cmd/batch.c b/reactos/base/shell/cmd/batch.c index 113ae914043..65ad5c0c0f6 100644 --- a/reactos/base/shell/cmd/batch.c +++ b/reactos/base/shell/cmd/batch.c @@ -269,6 +269,7 @@ BOOL Batch (LPTSTR fullname, LPTSTR firstword, LPTSTR param) cmd_free (bc->raw_params); } + ZeroMemory(bc->BatchFilePath, sizeof(bc->BatchFilePath)); bc->hBatchFile = hFile; tmp = _tcsrchr(fullname, '\\'); _tcsncpy(bc->BatchFilePath, fullname, ((_tcslen(fullname) - _tcslen(tmp)) + 1));