]> git.proxmox.com Git - mirror_edk2.git/commit - MdeModulePkg/Application/CapsuleApp/CapsuleDump.c
MdeModulePkg CapsuleApp: ASSERT to ensure 'CapsuleIndex' is not NULL
authorHao Wu <hao.a.wu@intel.com>
Mon, 21 Nov 2016 05:44:59 +0000 (13:44 +0800)
committerHao Wu <hao.a.wu@intel.com>
Tue, 22 Nov 2016 08:31:23 +0000 (16:31 +0800)
commita522ad7c192b5cf3b31d3152eb082236fbda7243
tree40cc018e641f8417dc4bd03c9340af1439bb2c40
parentb43dd22981b71dd78dd4cc04d55dc23d81c3bafb
MdeModulePkg CapsuleApp: ASSERT to ensure 'CapsuleIndex' is not NULL

Function GetVariable2() ensures its third (output) parameter will not be
NULL when the return status is EFI_SUCCESS.

This commit adds ASSERT as warnings for the case that will not happen.

Cc: Jiewen Yao <jiewen.yao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
MdeModulePkg/Application/CapsuleApp/CapsuleDump.c