Skip to content

Commit

Permalink
Merge pull request #2401 from skliper:fix2334-uninit_pkttime
Browse files Browse the repository at this point in the history
Fix #2334, Uninitialized PktTime in EVS_SendViaPorts
  • Loading branch information
dzbaker committed Sep 1, 2023
2 parents fa5031f + 5843440 commit 91a015b
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 91a015b

Please sign in to comment.