Skip to content

Commit

Permalink
Merge pull request nasa#59 from jphickey/fix-58-uninit-warn
Browse files Browse the repository at this point in the history
Fix nasa#58, add memset for uninitialized local
  • Loading branch information
dzbaker authored Sep 14, 2023
2 parents 406ec64 + cd0b0ec commit 7f9be05
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions unit-test/hk_app_tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -1016,6 +1016,8 @@ void Test_HK_ResetCountersCmd(void)
char ExpectedEventString[CFE_MISSION_EVS_MAX_MESSAGE_LENGTH];
snprintf(ExpectedEventString, CFE_MISSION_EVS_MAX_MESSAGE_LENGTH, "HK Reset Counters command received");

memset(&Buf, 0, sizeof(Buf));

/* Act */
HK_ResetCountersCmd(&Buf);

Expand Down

0 comments on commit 7f9be05

Please sign in to comment.