[NTOS] When checking something for NULL, let's initialize it to NULL...
authorMark Jansen <mark.jansen@reactos.org>
Thu, 27 Dec 2018 22:03:22 +0000 (23:03 +0100)
committerMark Jansen <mark.jansen@reactos.org>
Thu, 27 Dec 2018 22:03:22 +0000 (23:03 +0100)
ntoskrnl/io/pnpmgr/pnpmgr.c

index 3ea4469..9c0d030 100644 (file)
@@ -655,7 +655,7 @@ IopSetServiceEnumData(PDEVICE_NODE DeviceNode)
     UNICODE_STRING EnumKeyName;
     UNICODE_STRING ValueName;
     PKEY_VALUE_FULL_INFORMATION KeyValueInformation;
     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];
     ULONG Disposition;
     ULONG Count = 0, NextInstance = 0;
     WCHAR ValueBuffer[6];