From 002e83434c6a992b2a417c7b918f4a9b03570a46 Mon Sep 17 00:00:00 2001 From: anh Date: Tue, 5 Nov 2019 13:42:07 -0500 Subject: [PATCH] Fix #392, cpp check warning --- fsw/cfe-core/unit-test/ut_time_stubs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fsw/cfe-core/unit-test/ut_time_stubs.c b/fsw/cfe-core/unit-test/ut_time_stubs.c index 8dba04fd0..e03260b5a 100644 --- a/fsw/cfe-core/unit-test/ut_time_stubs.c +++ b/fsw/cfe-core/unit-test/ut_time_stubs.c @@ -133,7 +133,7 @@ void CFE_TIME_Print(char *PrintBuffer, CFE_TIME_SysTime_t TimeToPrint) CFE_TIME_SysTime_t CFE_TIME_GetTime(void) { static CFE_TIME_SysTime_t SimTime = { 0 }; - CFE_TIME_SysTime_t Result; + CFE_TIME_SysTime_t Result = { 0 }; int32 status; status = UT_DEFAULT_IMPL(CFE_TIME_GetTime); @@ -193,7 +193,7 @@ CFE_TIME_Compare_t CFE_TIME_Compare(CFE_TIME_SysTime_t TimeA, CFE_TIME_SysTime_ CFE_TIME_SysTime_t CFE_TIME_Add(CFE_TIME_SysTime_t Time1, CFE_TIME_SysTime_t Time2) { static CFE_TIME_SysTime_t SimTime = { 0 }; - CFE_TIME_SysTime_t Result; + CFE_TIME_SysTime_t Result = { 0 }; int32 status; status = UT_DEFAULT_IMPL(CFE_TIME_Add);