From 5843440428738191fddc96b5c59a0b54cd08625d Mon Sep 17 00:00:00 2001 From: Jacob Hageman Date: Mon, 17 Jul 2023 15:30:54 +0000 Subject: [PATCH] Fix #2334, Uninitialized PktTime in EVS_SendViaPorts --- modules/evs/fsw/src/cfe_evs_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/evs/fsw/src/cfe_evs_utils.c b/modules/evs/fsw/src/cfe_evs_utils.c index bf6057b05..f6fcc3260 100644 --- a/modules/evs/fsw/src/cfe_evs_utils.c +++ b/modules/evs/fsw/src/cfe_evs_utils.c @@ -540,7 +540,7 @@ void EVS_SendViaPorts(CFE_EVS_LongEventTlm_t *EVS_PktPtr) { char PortMessage[CFE_EVS_MAX_PORT_MSG_LENGTH]; char TimeBuffer[CFE_TIME_PRINTED_STRING_SIZE]; - CFE_TIME_SysTime_t PktTime; + CFE_TIME_SysTime_t PktTime = {0}; CFE_MSG_GetMsgTime(CFE_MSG_PTR(EVS_PktPtr->TelemetryHeader), &PktTime); CFE_TIME_Print(TimeBuffer, PktTime);