https://git.reactos.org/?p=reactos.git;a=commitdiff;h=faaf2dc0e641d9360ca57…
commit faaf2dc0e641d9360ca57fd0787fbfdbc65eaa04
Author: Thomas Faber <thomas.faber(a)reactos.org>
AuthorDate: Sun Mar 24 10:43:53 2019 +0100
Commit: Thomas Faber <thomas.faber(a)reactos.org>
CommitDate: Mon Mar 25 08:41:44 2019 +0100
[NTOS:KDBG] Fix uninitialized variable usage.
Spotted by clang.
---
ntoskrnl/ex/handle.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/ntoskrnl/ex/handle.c b/ntoskrnl/ex/handle.c
index 76dcbfcff96..1851d56b094 100644
--- a/ntoskrnl/ex/handle.c
+++ b/ntoskrnl/ex/handle.c
@@ -1297,7 +1297,8 @@ BOOLEAN ExpKdbgExtHandle(ULONG Argc, PCHAR Argv[])
PHANDLE_TABLE HandleTable;
POBJECT_HEADER ObjectHeader;
PHANDLE_TABLE_ENTRY TableEntry;
- ULONG NeededLength, NameLength;
+ ULONG NeededLength = 0;
+ ULONG NameLength;
PCM_KEY_CONTROL_BLOCK Kcb, CurrentKcb;
POBJECT_HEADER_NAME_INFO ObjectNameInfo;