https://git.reactos.org/?p=reactos.git;a=commitdiff;h=faa938e9dc8a50a9852a0…
commit faa938e9dc8a50a9852a0075f2a1ca0b2be7f89c
Author: Hervé Poussineau <hpoussin(a)reactos.org>
AuthorDate: Sat Mar 30 22:32:41 2019 +0100
Commit: Hervé Poussineau <hpoussin(a)reactos.org>
CommitDate: Mon Apr 1 11:38:32 2019 +0200
[USERENV] Initialize variable before using it
---
dll/win32/userenv/profile.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dll/win32/userenv/profile.c b/dll/win32/userenv/profile.c
index 6c9d29ee26..6e829527b2 100644
--- a/dll/win32/userenv/profile.c
+++ b/dll/win32/userenv/profile.c
@@ -357,7 +357,7 @@ CheckForGuestsAndAdmins(
PTOKEN_GROUPS pGroupInfo = NULL;
PSID pAdministratorsSID = NULL;
PSID pGuestsSID = NULL;
- DWORD i, dwSize;
+ DWORD i, dwSize = 0;
DWORD dwError = ERROR_SUCCESS;
DPRINT("CheckForGuestsAndAdmins(%p %p)\n", hToken, pdwState);