From fee76b1e3d8da5152e44d67293165ae0c5651d25 Mon Sep 17 00:00:00 2001 From: Louis Burda Date: Tue, 28 Dec 2021 20:34:33 +0100 Subject: In working condition, but with shitty implementation for selecting next track --- src/list.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/list.c') diff --git a/src/list.c b/src/list.c index 0573512..77a4042 100644 --- a/src/list.c +++ b/src/list.c @@ -70,6 +70,7 @@ struct link * list_pop_front(struct link *head) { ASSERT(head != NULL); + if (!head->next) return NULL; return link_pop(head->next); } -- cgit v1.2.3-71-gd317