diff options
| author | Louis Burda <quent.burda@gmail.com> | 2021-12-28 20:34:33 +0100 |
|---|---|---|
| committer | Louis Burda <quent.burda@gmail.com> | 2021-12-28 20:34:33 +0100 |
| commit | fee76b1e3d8da5152e44d67293165ae0c5651d25 (patch) | |
| tree | bb63abe85c47d73ce7e4b409fb5d51565682cd8b /src/list.c | |
| parent | 2b09bac500bfc2b65467b35520076622d1d67afb (diff) | |
| download | tmus-fee76b1e3d8da5152e44d67293165ae0c5651d25.tar.gz tmus-fee76b1e3d8da5152e44d67293165ae0c5651d25.zip | |
In working condition, but with shitty implementation for selecting next track
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); } |
