From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-002e3701.pphosted.com (mx0b-002e3701.pphosted.com [148.163.143.35]) by mx.groups.io with SMTP id smtpd.web08.3785.1641630367244244694 for ; Sat, 08 Jan 2022 00:26:07 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=Ej6CekGc; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: hpe.com, ip: 148.163.143.35, mailfrom: prvs=000704d8ca=abner.chang@hpe.com) Received: from pps.filterd (m0150245.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 2084g4pL021171 for ; Sat, 8 Jan 2022 08:26:06 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hpe.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding; s=pps0720; bh=veTG03X2IsbgT9f5i+9+M6dZQ0aeNWp/f+mzvacVMOM=; b=Ej6CekGcwRxwEFExlrbZ9xiE5j4HNX5Nnp/OaKM6ORoaGHusuta8nwDk6Be1V2XNXBaX FtnER/RNRRPwti1WTn2iSqBGoJ0VW1aZlfo/TaX94PJXe4Pr1CmKQzdVH1mlVauatoz/ uZFAtGIvS9x73vI1CJyMa+PR0wUHYyGumW9w5OaLCozyt6ZQEuBM15mXQhN3KEVgp4Sx EnsLOWORztszX89FAyG1BhTOhn1pl5QLAFfZQPidpA3AL/hJdWzN+QBv0OWDR+AKBVeA hj09LJTVfWI8I9jl6Qp+UcfQr/fupGw8M+ukEcfuIXM04S1pu/SlkKdQ84MpPqrGHDps qQ== Received: from g2t2354.austin.hpe.com (g2t2354.austin.hpe.com [15.233.44.27]) by mx0b-002e3701.pphosted.com (PPS) with ESMTPS id 3df3tfgrmv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Sat, 08 Jan 2022 08:26:06 +0000 Received: from g2t2360.austin.hpecorp.net (g2t2360.austin.hpecorp.net [16.196.225.135]) by g2t2354.austin.hpe.com (Postfix) with ESMTP id C69B491 for ; Sat, 8 Jan 2022 08:26:05 +0000 (UTC) Received: from UB16Abner.asiapacific.hpqcorp.net (ub16abner.asiapacific.hpqcorp.net [15.119.209.229]) by g2t2360.austin.hpecorp.net (Postfix) with ESMTP id 0FE9537; Sat, 8 Jan 2022 08:26:04 +0000 (UTC) From: "Abner Chang" To: devel@edk2.groups.io Cc: abner.chang@hpe.com Subject: [PATCH 61/79] Platform/RISC-V: Initialize variable to zero Date: Sat, 8 Jan 2022 15:24:44 +0800 Message-Id: <20220108072444.17879-20-abner.chang@hpe.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220108072444.17879-1-abner.chang@hpe.com> References: <20220108072444.17879-1-abner.chang@hpe.com> MIME-Version: 1.0 X-Proofpoint-GUID: -vmMJocE-LzK_qyoyQlDzawNg19FQM4q X-Proofpoint-ORIG-GUID: -vmMJocE-LzK_qyoyQlDzawNg19FQM4q X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.11.62.513 definitions=2022-01-08_03,2022-01-07_01,2021-12-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 malwarescore=0 phishscore=0 spamscore=0 mlxscore=0 lowpriorityscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 clxscore=1015 priorityscore=1501 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2110150000 definitions=main-2201080064 Content-Transfer-Encoding: quoted-printable (This is migrated from edk2-platforms:Platform) Initialize variable NumberOfPlatformInArray to 0. Signed-off-by: Abner Chang Cc: Daniel Schaefer Cc: Sunil V L Reviewed-by: Daniel Schaefer --- .../RiscVSpecialPlatformLibNull/RiscVSpecialPlatformLib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Platform/RISC-V/PlatformPkg/Library/RiscVSpecialPlatformLibNul= l/RiscVSpecialPlatformLib.c b/Platform/RISC-V/PlatformPkg/Library/RiscVSpec= ialPlatformLibNull/RiscVSpecialPlatformLib.c index 18c152001c..f64bde4535 100644 --- a/Platform/RISC-V/PlatformPkg/Library/RiscVSpecialPlatformLibNull/RiscV= SpecialPlatformLib.c +++ b/Platform/RISC-V/PlatformPkg/Library/RiscVSpecialPlatformLibNull/RiscV= SpecialPlatformLib.c @@ -16,5 +16,5 @@ =0D const struct platform_override *special_platforms =3D NULL;=0D const struct platform_override *SpecialPlatformArray =3D NULL;=0D -INTN NumberOfPlaformsInArray;=0D +INTN NumberOfPlaformsInArray =3D 0;=0D =0D --=20 2.31.1