diff options
author | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-01-25 03:17:56 +0000 |
---|---|---|
committer | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-01-25 03:17:56 +0000 |
commit | 6577541d25d1ab546cbcffbb3da4bece01e85966 (patch) | |
tree | 4ada54330a4d2ae134fc61c5c572e09ffd0e3a23 /MdePkg/Library/UefiDevicePathLib | |
parent | 372285d1fc420da6c9da9f3a1856d16f37e557d4 (diff) | |
download | edk2-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/Library/UefiDevicePathLib')
-rw-r--r-- | MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.c | 2 |
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;
|