diff options
Diffstat (limited to 'src/list.c')
| -rw-r--r-- | src/list.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); } |
