summaryrefslogtreecommitdiffstats
path: root/src/list.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/list.c')
-rw-r--r--src/list.c1
1 files changed, 1 insertions, 0 deletions
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);
}