Skip to content

Commit

Permalink
Merge pull request nasa#32 from chillfig/omit_loop_condition
Browse files Browse the repository at this point in the history
Fix nasa#31, Remove second loop condition using FilterPackets
  • Loading branch information
dzbaker committed Jul 7, 2022
2 parents 6289cee + 411f068 commit 3b72ff9
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 3b72ff9

Please sign in to comment.