summaryrefslogtreecommitdiff
path: root/MdePkg
diff options
context:
space:
mode:
authorqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2008-01-25 03:17:56 +0000
committerqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2008-01-25 03:17:56 +0000
commit6577541d25d1ab546cbcffbb3da4bece01e85966 (patch)
tree4ada54330a4d2ae134fc61c5c572e09ffd0e3a23 /MdePkg
parent372285d1fc420da6c9da9f3a1856d16f37e557d4 (diff)
downloadedk2-platforms-6577541d25d1ab546cbcffbb3da4bece01e85966.tar.xz
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
Diffstat (limited to 'MdePkg')
-rw-r--r--MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.c2
1 files changed, 1 insertions, 1 deletions
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;