Skip to content

Commit

Permalink
Fix #2334, Uninitialized PktTime in EVS_SendViaPorts
Browse files Browse the repository at this point in the history
  • Loading branch information
skliper committed Jul 17, 2023
1 parent f6d7f8c commit 5843440
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/evs/fsw/src/cfe_evs_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5843440

Please sign in to comment.