From c8a94d9eb6bb3972071eb3a4eb8e54ece1a5b56e Mon Sep 17 00:00:00 2001 From: David Steele Date: Wed, 7 Oct 2020 15:17:16 -0400 Subject: [PATCH] Add missing assertion in lstFind(). --- src/common/type/list.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common/type/list.c b/src/common/type/list.c index c5b017c1b..58cc60bf3 100644 --- a/src/common/type/list.c +++ b/src/common/type/list.c @@ -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)