From ec5c0c926b17cae355a6b960b7877609f0ef32e0 Mon Sep 17 00:00:00 2001 From: Mark Jansen Date: Thu, 27 Dec 2018 23:03:22 +0100 Subject: [PATCH] [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 3ea446977c1..9c0d0304640 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]; -- 2.17.1