Skip to content

Commit

Permalink
Merge pull request #32 from chillfig/omit_loop_condition
Browse files Browse the repository at this point in the history
Fix #31, Remove second loop condition using FilterPackets
  • Loading branch information
dzbaker authored Jul 8, 2022
2 parents 0182dce + 411f068 commit 367d412
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fsw/src/ds_table.c
Original file line number Diff line number Diff line change
Expand Up @@ -1153,7 +1153,7 @@ int32 DS_TableFindMsgID(CFE_SB_MsgId_t MessageID)
HashLink = DS_AppData.HashTable[HashTableIndex];

/* NULL when list is empty or end of list */
while ((HashLink != (DS_HashLink_t *)NULL) && (FilterPackets != NULL))
while (HashLink != (DS_HashLink_t *)NULL)
{
/* Compare this linked list entry for matching MessageID */
if (CFE_SB_MsgIdToValue(FilterPackets[HashLink->Index].MessageID) == CFE_SB_MsgIdToValue(MessageID))
Expand Down

0 comments on commit 367d412

Please sign in to comment.