diff options
| author | Louis Burda <quent.burda@gmail.com> | 2023-01-12 15:50:56 +0100 |
|---|---|---|
| committer | Louis Burda <quent.burda@gmail.com> | 2023-01-12 15:50:56 +0100 |
| commit | 099002715d30af646d4582ac2b14322dae3f04d9 (patch) | |
| tree | 459d79b4e9121e5b6d84eea757cc17400366f075 /src/player.c | |
| parent | 44070fb5518e2b54748d58da5a5c61f476ef8700 (diff) | |
| download | tmus-099002715d30af646d4582ac2b14322dae3f04d9.tar.gz tmus-099002715d30af646d4582ac2b14322dae3f04d9.zip | |
Refactor error handling
Diffstat (limited to 'src/player.c')
| -rw-r--r-- | src/player.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/player.c b/src/player.c index eb246c9..7d215f6 100644 --- a/src/player.c +++ b/src/player.c @@ -73,7 +73,7 @@ player_next_from_playlist(void) if (player.track && link_inuse(&player.track->link_pl)) { index = list_index(&player.playlist, &player.track->link_pl); - if (index < 0) PANIC(); + ASSERT(index >= 0); if (++index == list_len(&player.playlist)) return NULL; } else { |
