From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mx.groups.io with SMTP id smtpd.web12.48915.1598861766717100074 for ; Mon, 31 Aug 2020 01:16:06 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 134.134.136.20, mailfrom: zhiguang.liu@intel.com) IronPort-SDR: Vrsb6okdlCifzOdL8qMIhEoUup3xe7olPKwMEvYLPwVdbmDNvcH3ep5hn30h/GdApbYVSsHbqa 7xMHw1Iud+1Q== X-IronPort-AV: E=McAfee;i="6000,8403,9729"; a="144669491" X-IronPort-AV: E=Sophos;i="5.76,375,1592895600"; d="scan'208";a="144669491" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Aug 2020 01:16:02 -0700 IronPort-SDR: 9RvgPjdNHNxYbBebGOB3ZurNHhUzO3omNqBdeCsr6p+WMbOZKTxCVvfd++4IApyYnU0/Z2Ahkk LsIwlnlvaWJA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,375,1592895600"; d="scan'208";a="338157740" Received: from fieedk002.ccr.corp.intel.com ([10.239.158.125]) by FMSMGA003.fm.intel.com with ESMTP; 31 Aug 2020 01:16:01 -0700 From: "Zhiguang Liu" To: devel@edk2.groups.io Cc: Jiewen Yao , Jian J Wang , Qi Zhang , Rahul Kumar Subject: [PATCH] SecurityPkg: Initailize variable Status before it is consumed. Date: Mon, 31 Aug 2020 16:15:40 +0800 Message-Id: <20200831081540.1431-1-zhiguang.liu@intel.com> X-Mailer: git-send-email 2.25.1.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D2945 Cc: Jiewen Yao Cc: Jian J Wang Cc: Qi Zhang Cc: Rahul Kumar Signed-off-by: Zhiguang Liu --- SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.c | 1 + 1 file changed, 1 insertion(+) diff --git a/SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.c b/SecurityPkg/Tcg/Tcg2Pei/Tc= g2Pei.c index 0e770f4485..5e883f0cc5 100644 --- a/SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.c +++ b/SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.c @@ -449,6 +449,7 @@ HashLogExtendEvent ( EFI_STATUS Status;=0D TPML_DIGEST_VALUES DigestList;=0D =0D + Status =3D EFI_SUCCESS;=0D if (GetFirstGuidHob (&gTpmErrorHobGuid) !=3D NULL) {=0D return EFI_DEVICE_ERROR;=0D }=0D --=20 2.25.1.windows.1