summaryrefslogtreecommitdiffstats
path: root/OvmfPkg/PlatformDxe/Platform.c
diff options
context:
space:
mode:
Diffstat (limited to 'OvmfPkg/PlatformDxe/Platform.c')
-rw-r--r--OvmfPkg/PlatformDxe/Platform.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/OvmfPkg/PlatformDxe/Platform.c b/OvmfPkg/PlatformDxe/Platform.c
index 4b141629c9..f0adb0ea93 100644
--- a/OvmfPkg/PlatformDxe/Platform.c
+++ b/OvmfPkg/PlatformDxe/Platform.c
@@ -3,7 +3,7 @@
them via HII.
Copyright (C) 2014, Red Hat, Inc.
- Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>
+ Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials are licensed and made available
under the terms and conditions of the BSD License which accompanies this
@@ -263,6 +263,8 @@ PopulateForm (
EFI_IFR_GUID_LABEL *Anchor;
VOID *OpCodeBuffer2;
+ OpCodeBuffer2 = NULL;
+
//
// 1. Allocate an empty opcode buffer.
//