Skip to content

Commit

Permalink
Add missing assertion in lstFind().
Browse files Browse the repository at this point in the history
  • Loading branch information
dwsteele committed Oct 7, 2020
1 parent 98f6a1c commit c8a94d9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/common/type/list.c
Expand Up @@ -185,6 +185,7 @@ lstFind(const List *this, const void *item)
FUNCTION_TEST_END();

ASSERT(this != NULL);
ASSERT(this->comparator != NULL);
ASSERT(item != NULL);

if (this->sortOrder == sortOrderAsc)
Expand Down

0 comments on commit c8a94d9

Please sign in to comment.