BaseTools GenVtf: Initialize the return point as NULL

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
This commit is contained in:
Liming Gao 2016-09-29 15:58:23 +08:00
parent 9a1a63cf11
commit c52d9f71ba
1 changed files with 1 additions and 0 deletions

View File

@ -796,6 +796,7 @@ Returns:
TmpFitPtr = (FIT_TABLE *) RelativeAddress;
NumFitComponents = TmpFitPtr->CompSize;
*FitPtr = NULL;
for (Index = 0; Index < NumFitComponents; Index++) {
if ((TmpFitPtr->CvAndType & FIT_TYPE_MASK) == COMP_TYPE_FIT_UNUSED) {