From f739a2e36653b505c0cf36483262ad170b417c6f Mon Sep 17 00:00:00 2001 From: Joseph Hickey Date: Mon, 16 Jan 2023 16:34:25 -0500 Subject: [PATCH] Fix #38, correct uninitialized variable in UT --- unit-test/hk_app_tests.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/unit-test/hk_app_tests.c b/unit-test/hk_app_tests.c index 5b58827..a45a7f2 100644 --- a/unit-test/hk_app_tests.c +++ b/unit-test/hk_app_tests.c @@ -1231,6 +1231,8 @@ void Test_HK_HousekeepingCmd(void) HK_AppData.CombinedPacketsSent = 4; HK_AppData.MemPoolHandle = HK_UT_MEMPOOL_1; + memset(&DummyMsg, 0, sizeof(DummyMsg)); + /* Act */ HK_HousekeepingCmd(&DummyMsg);