commit f4883a69092d5a6f7ce0a66bfdcd89b6e91fd84c
parent e339f0d7a1ecdabe310b7b7e83b6bfdfa50f78b9
Author: Louis Burda <quent.burda@gmail.com>
Date: Tue, 22 Feb 2022 16:03:04 +0100
Fix bug in list_sort
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/list.c b/src/list.c
@@ -104,7 +104,7 @@ list_sort(struct list *list, int (*compare)(struct link *a, struct link *b))
{
struct link *link, *cmp, *next;
- ASSERT(list != NULL && cmp != NULL);
+ ASSERT(list != NULL && compare != NULL);
/* Simple Insertion Sort */
/* cmp(a,b) -> (a-b) */