From 3333827efd9fd04ffab3b4166057fb5f9891d354 Mon Sep 17 00:00:00 2001 From: Jacob Hageman Date: Tue, 18 Jan 2022 13:47:54 -0700 Subject: [PATCH] Fix #2028, Initialize BlockData in ES UT --- modules/es/ut-coverage/es_UT.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/es/ut-coverage/es_UT.c b/modules/es/ut-coverage/es_UT.c index 245487995..0ebcef1ec 100644 --- a/modules/es/ut-coverage/es_UT.c +++ b/modules/es/ut-coverage/es_UT.c @@ -4670,6 +4670,8 @@ void TestCDS() UtPrintf("Begin Test CDS"); + memset(BlockData, 0, sizeof(BlockData)); + /* Test init with a mutex create failure */ UT_SetDeferredRetcode(UT_KEY(OS_MutSemCreate), 1, OS_ERROR); UtAssert_INT32_EQ(CFE_ES_CDS_EarlyInit(), CFE_STATUS_EXTERNAL_RESOURCE_FAIL);