[NTOS:CM]
authorAmine Khaldi <amine.khaldi@reactos.org>
Sat, 28 Jun 2014 13:15:05 +0000 (13:15 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Sat, 28 Jun 2014 13:15:05 +0000 (13:15 +0000)
* Fix uninitialized pointer read. CID 1223184.
CORE-7975

svn path=/trunk/; revision=63654

reactos/ntoskrnl/config/cmapi.c

index a75f028..467afd5 100644 (file)
@@ -2173,7 +2173,8 @@ CmpDeepCopyKeyInternal(IN PHHIVE SourceHive,
                        OUT PHCELL_INDEX DestKeyCell OPTIONAL)
 {
     NTSTATUS Status;
                        OUT PHCELL_INDEX DestKeyCell OPTIONAL)
 {
     NTSTATUS Status;
-    PCM_KEY_NODE SrcNode, DestNode;
+    PCM_KEY_NODE SrcNode;
+    PCM_KEY_NODE DestNode = NULL;
     HCELL_INDEX NewKeyCell, SubKey, NewSubKey;
     ULONG Index, SubKeyCount;
     PAGED_CODE();
     HCELL_INDEX NewKeyCell, SubKey, NewSubKey;
     ULONG Index, SubKeyCount;
     PAGED_CODE();