aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/linked_list.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/linked_list.c b/common/linked_list.c
index b853289..cb3e0a8 100644
--- a/common/linked_list.c
+++ b/common/linked_list.c
@@ -29,5 +29,6 @@ void linked_list_remove(struct linked_list *elem) {
}
bool linked_list_empty(struct linked_list *list) {
+ assert(list->prev != NULL && list->next != NULL);
return list->next == list;
}