From 6577541d25d1ab546cbcffbb3da4bece01e85966 Mon Sep 17 00:00:00 2001 From: qhuang8 Date: Fri, 25 Jan 2008 03:17:56 +0000 Subject: [PATCH] Zero all the field so that caller does not need to be concerned about the reserved field. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4636 6f19259b-4bc3-4df7-8a09-765794883524 --- MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.c b/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.c index 38f9682229..83372e86d4 100644 --- a/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.c +++ b/MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.c @@ -418,7 +418,7 @@ CreateDeviceNode ( return NULL; } - DevicePath = AllocatePool (NodeLength); + DevicePath = AllocateZeroPool (NodeLength); if (DevicePath != NULL) { DevicePath->Type = NodeType; DevicePath->SubType = NodeSubType;