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>
NULL\r
);\r
if (!EFI_ERROR(Status)) {\r
+ ASSERT (CapsuleIndex != NULL);\r
CopyMem(CapsuleIndexData, CapsuleIndex, 11 * sizeof(CHAR16));\r
CapsuleIndexData[11] = 0;\r
Print(L"CapsuleMax - %s\n", CapsuleIndexData);\r
NULL\r
);\r
if (!EFI_ERROR(Status)) {\r
+ ASSERT (CapsuleIndex != NULL);\r
CopyMem(CapsuleIndexData, CapsuleIndex, 11 * sizeof(CHAR16));\r
CapsuleIndexData[11] = 0;\r
Print(L"CapsuleLast - %s\n", CapsuleIndexData);\r