Initialize variable NumberOfPlatformInArray to 0. Signed-off-by: Abner Chang <abner.ch...@hpe.com> Cc: Daniel Schaefer <daniel.schae...@hpe.com> Cc: Sunil V L <suni...@ventanamicro.com> --- .../RiscVSpecialPlatformLibNull/RiscVSpecialPlatformLib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Platform/RISC-V/PlatformPkg/Library/RiscVSpecialPlatformLibNull/RiscVSpecialPlatformLib.c b/Platform/RISC-V/PlatformPkg/Library/RiscVSpecialPlatformLibNull/RiscVSpecialPlatformLib.c index 18c152001c..f64bde4535 100644 --- a/Platform/RISC-V/PlatformPkg/Library/RiscVSpecialPlatformLibNull/RiscVSpecialPlatformLib.c +++ b/Platform/RISC-V/PlatformPkg/Library/RiscVSpecialPlatformLibNull/RiscVSpecialPlatformLib.c @@ -16,5 +16,5 @@ const struct platform_override *special_platforms = NULL; const struct platform_override *SpecialPlatformArray = NULL; -INTN NumberOfPlaformsInArray; +INTN NumberOfPlaformsInArray = 0; -- 2.31.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#83748): https://edk2.groups.io/g/devel/message/83748 Mute This Topic: https://groups.io/mt/87062628/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-