Skip to content

Commit

Permalink
Fix nasa#31, Remove second loop condition using FilterPackets
Browse files Browse the repository at this point in the history
  • Loading branch information
chillfig committed Jul 1, 2022
1 parent df4432c commit 411f068
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 411f068

Please sign in to comment.