[misc] fix warnings reported by Cppcheck

* Closes #1520
This commit is contained in:
Pete Batard 2020-05-08 01:25:35 +01:00
parent 79a6f8942e
commit bcca9144b7
No known key found for this signature in database
GPG key ID: 38E0CF5E69EDD671
5 changed files with 8 additions and 14 deletions

View file

@ -753,7 +753,7 @@ BOOL EnablePrivileges(void)
if (NT_SUCCESS(status)) {
CHAR privilegesBuffer[FIELD_OFFSET(TOKEN_PRIVILEGES, Privileges) +
sizeof(LUID_AND_ATTRIBUTES) * ARRAYSIZE(requestedPrivileges)];
sizeof(LUID_AND_ATTRIBUTES) * ARRAYSIZE(requestedPrivileges)] = { 0 };
PTOKEN_PRIVILEGES privileges;
ULONG i;