diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2015-03-07 16:01:26 +0100 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2015-03-07 16:01:26 +0100 |
commit | 1cd5c5ec77ea43088982a439b58499be87c62087 (patch) | |
tree | 914b1e957ca685f956ee3956ea90c24ec94f5da7 /src/ui_act.c | |
parent | d888d0ac2aeb233deeb70aaca196453f8195e433 (diff) | |
download | pianobar-1cd5c5ec77ea43088982a439b58499be87c62087.tar.gz pianobar-1cd5c5ec77ea43088982a439b58499be87c62087.tar.bz2 pianobar-1cd5c5ec77ea43088982a439b58499be87c62087.zip |
Fix upcoming songs assertion failure
This should not be an assertion, it is expected to happen. Test with
`echo -e "s0\nu" > ctl`. Fixes #509.
Diffstat (limited to 'src/ui_act.c')
-rw-r--r-- | src/ui_act.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/ui_act.c b/src/ui_act.c index 7515396..c39f98b 100644 --- a/src/ui_act.c +++ b/src/ui_act.c @@ -496,9 +496,7 @@ BarUiActCallback(BarUiActTempBanSong) { /* print upcoming songs */ BarUiActCallback(BarUiActPrintUpcoming) { - assert (selSong != NULL); - - PianoSong_t *nextSong = PianoListNextP (selSong); + PianoSong_t * const nextSong = PianoListNextP (selSong); if (nextSong != NULL) { BarUiListSongs (&app->settings, nextSong, NULL); } else { |