https://git.reactos.org/?p=reactos.git;a=commitdiff;h=ec5c0c926b17cae355a6b…
commit ec5c0c926b17cae355a6b960b7877609f0ef32e0
Author: Mark Jansen <mark.jansen(a)reactos.org>
AuthorDate: Thu Dec 27 23:03:22 2018 +0100
Commit: Mark Jansen <mark.jansen(a)reactos.org>
CommitDate: Thu Dec 27 23:03:22 2018 +0100
[NTOS] When checking something for NULL, let's initialize it to NULL...
---
ntoskrnl/io/pnpmgr/pnpmgr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ntoskrnl/io/pnpmgr/pnpmgr.c b/ntoskrnl/io/pnpmgr/pnpmgr.c
index 3ea446977c..9c0d030464 100644
--- a/ntoskrnl/io/pnpmgr/pnpmgr.c
+++ b/ntoskrnl/io/pnpmgr/pnpmgr.c
@@ -655,7 +655,7 @@ IopSetServiceEnumData(PDEVICE_NODE DeviceNode)
UNICODE_STRING EnumKeyName;
UNICODE_STRING ValueName;
PKEY_VALUE_FULL_INFORMATION KeyValueInformation;
- HANDLE ServiceKey = NULL, ServiceEnumKey;
+ HANDLE ServiceKey = NULL, ServiceEnumKey = NULL;
ULONG Disposition;
ULONG Count = 0, NextInstance = 0;
WCHAR ValueBuffer[6];