From 411f0688f6a233053412f072d9fe6ba4c5d2db9f Mon Sep 17 00:00:00 2001 From: Figueroa Date: Fri, 1 Jul 2022 00:21:34 -0400 Subject: [PATCH] Fix #31, Remove second loop condition using FilterPackets --- fsw/src/ds_table.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fsw/src/ds_table.c b/fsw/src/ds_table.c index e00e1d3..7def4d2 100644 --- a/fsw/src/ds_table.c +++ b/fsw/src/ds_table.c @@ -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))