]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Library/DxeCoreMemoryAllocationLib/MemoryAllocationLib.c
Update code to support VS2013 tool chain.
[mirror_edk2.git] / MdeModulePkg / Library / DxeCoreMemoryAllocationLib / MemoryAllocationLib.c
index bbb755fa2f65cec1e698f93405664f9634b8a90b..766a3d033f582ef9bebcf631afc3ea180e8ac29b 100644 (file)
@@ -2,7 +2,7 @@
   Support routines for memory allocation routines based \r
   on boot services for Dxe phase drivers.\r
 \r
-  Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials                          \r
   are licensed and made available under the terms and conditions of the BSD License         \r
   which accompanies this distribution.  The full text of the license may be found at        \r
@@ -375,6 +375,8 @@ InternalAllocatePool (
   EFI_STATUS  Status;\r
   VOID        *Memory;\r
 \r
+  Memory = NULL;\r
+\r
   Status = CoreAllocatePool (MemoryType, AllocationSize, &Memory);\r
   if (EFI_ERROR (Status)) {\r
     Memory = NULL;\r