]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Zero all the field so that caller does not need to be concerned about the reserved...
authorqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 25 Jan 2008 03:17:56 +0000 (03:17 +0000)
committerqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 25 Jan 2008 03:17:56 +0000 (03:17 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4636 6f19259b-4bc3-4df7-8a09-765794883524

MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.c

index 38f9682229f9929bea4a93b3578ac58da5bab2ae..83372e86d4ae5ed58b8d612bbd844dc6d7d1df7b 100644 (file)
@@ -418,7 +418,7 @@ CreateDeviceNode (
     return NULL;\r
   }\r
  \r
-  DevicePath = AllocatePool (NodeLength);\r
+  DevicePath = AllocateZeroPool (NodeLength);\r
   if (DevicePath != NULL) {\r
      DevicePath->Type    = NodeType;\r
      DevicePath->SubType = NodeSubType;\r