From 2467b48802e354be644e99b80e6facdb2431b678 Mon Sep 17 00:00:00 2001 From: Nikolaj Schlej Date: Sun, 29 Jan 2023 16:51:20 -0800 Subject: [PATCH] Attempt to fix an issue spotted by SonarCloud --- common/Tiano/EfiTianoCompress.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/Tiano/EfiTianoCompress.c b/common/Tiano/EfiTianoCompress.c index 6b3c0d5..896c3bf 100644 --- a/common/Tiano/EfiTianoCompress.c +++ b/common/Tiano/EfiTianoCompress.c @@ -1559,7 +1559,7 @@ Returns: (VOID) INT32 i; UINT16 Start[18]; - Start[1] = 0; + memset(Start, 0, sizeof(Start)); for (i = 1; i <= 16; i++) { Start[i + 1] = (UINT16)((Start[i] + mLenCnt[i]) << 1); }