diff options
author | Max Kellermann <max@duempel.org> | 2008-09-19 14:45:32 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-09-19 14:45:32 +0200 |
commit | d13c5a10a758a453dce00990e58cff572c592be7 (patch) | |
tree | 0210aeaa4d3af74616a07034082ac74dcd1a7fa4 | |
parent | a2c8eb38d8b6bd615dfb9ce183730a4ebc0b6760 (diff) | |
download | mpd-d13c5a10a758a453dce00990e58cff572c592be7.tar.gz mpd-d13c5a10a758a453dce00990e58cff572c592be7.tar.xz mpd-d13c5a10a758a453dce00990e58cff572c592be7.zip |
browser: song must not be NULL in set_highlight()
The caller must not pass NULL to set_highlight(). Replaced check with
assertion.
-rw-r--r-- | src/screen_browser.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/screen_browser.c b/src/screen_browser.c index 0a06e5fb3..dbc7adad3 100644 --- a/src/screen_browser.c +++ b/src/screen_browser.c @@ -56,8 +56,7 @@ set_highlight(mpdclient_filelist_t *fl, mpd_Song *song, int highlight) { GList *list = g_list_first(fl->list); - if( !song ) - return; + assert(song != NULL); while( list ) { filelist_entry_t *entry = list->data; |