From: Mark Jansen Date: Thu, 27 Dec 2018 22:03:22 +0000 (+0100) Subject: [NTOS] When checking something for NULL, let's initialize it to NULL... X-Git-Tag: 0.4.13-dev~881 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=ec5c0c926b17cae355a6b960b7877609f0ef32e0;ds=sidebyside [NTOS] When checking something for NULL, let's initialize it to NULL... --- 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];