Skip to content

Commit

Permalink
Fix #49, Resolve minor static analysis warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
skliper committed Aug 18, 2022
1 parent e6f9682 commit 97dc150
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions fsw/src/ds_table.c
Original file line number Diff line number Diff line change
Expand Up @@ -828,8 +828,8 @@ bool DS_TableVerifyCount(uint32 SequenceCount)
void DS_TableSubscribe(void)
{
DS_PacketEntry_t *FilterPackets = NULL;
CFE_SB_MsgId_t MessageID = CFE_SB_INVALID_MSG_ID;
int32 i = 0;
CFE_SB_MsgId_t MessageID;
int32 i;

FilterPackets = DS_AppData.FilterTblPtr->Packet;

Expand Down Expand Up @@ -863,8 +863,8 @@ void DS_TableSubscribe(void)
void DS_TableUnsubscribe(void)
{
DS_PacketEntry_t *FilterPackets = NULL;
CFE_SB_MsgId_t MessageID = CFE_SB_INVALID_MSG_ID;
int32 i = 0;
CFE_SB_MsgId_t MessageID;
int32 i;

FilterPackets = DS_AppData.FilterTblPtr->Packet;

Expand Down
2 changes: 1 addition & 1 deletion unit-test/ds_file_tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -964,7 +964,7 @@ void DS_FileCreateSequence_Test_ByTime(void)
int32 FileIndex = 0;
CFE_TIME_SysTime_t FakeTime;

char Sequence[DS_TOTAL_FNAME_BUFSIZE];
char Sequence[DS_TOTAL_FNAME_BUFSIZE] = "";

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

Expand Down

0 comments on commit 97dc150

Please sign in to comment.