diff options
author | Liming Gao <liming.gao@intel.com> | 2016-09-29 15:58:23 +0800 |
---|---|---|
committer | Liming Gao <liming.gao@intel.com> | 2016-10-08 13:44:33 +0800 |
commit | c52d9f71ba179a825c12851a2b4823c1181bf55a (patch) | |
tree | 38777fe5da53c4b280c4e60e42e1c8c18b25356d | |
parent | 9a1a63cf1148eeeb50d58a6982b4c45f2e83e8ab (diff) | |
download | edk2-platforms-c52d9f71ba179a825c12851a2b4823c1181bf55a.tar.xz |
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>
-rw-r--r-- | BaseTools/Source/C/GenVtf/GenVtf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/BaseTools/Source/C/GenVtf/GenVtf.c b/BaseTools/Source/C/GenVtf/GenVtf.c index 9a3f5081a7..f6765ddbca 100644 --- a/BaseTools/Source/C/GenVtf/GenVtf.c +++ b/BaseTools/Source/C/GenVtf/GenVtf.c @@ -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) {
|