From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) (using TLSv1 with cipher CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id A7B4B1A1E48 for ; Thu, 29 Sep 2016 07:12:57 -0700 (PDT) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga101.jf.intel.com with ESMTP; 29 Sep 2016 07:12:57 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.30,415,1470726000"; d="scan'208";a="767204325" Received: from shwde7172.ccr.corp.intel.com ([10.239.9.23]) by FMSMGA003.fm.intel.com with ESMTP; 29 Sep 2016 07:12:56 -0700 From: Liming Gao To: edk2-devel@lists.01.org Date: Thu, 29 Sep 2016 22:12:46 +0800 Message-Id: <1475158367-13120-4-git-send-email-liming.gao@intel.com> X-Mailer: git-send-email 2.8.0.windows.1 In-Reply-To: <1475158367-13120-1-git-send-email-liming.gao@intel.com> References: <1475158367-13120-1-git-send-email-liming.gao@intel.com> Subject: [Patch 3/4] BaseTools GenVtf: Initialize the return point as NULL X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Sep 2016 14:12:57 -0000 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao --- BaseTools/Source/C/GenVtf/GenVtf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/BaseTools/Source/C/GenVtf/GenVtf.c b/BaseTools/Source/C/GenVtf/GenVtf.c index 9a3f508..f6765dd 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) { -- 2.8.0.windows.1