From d13c5a10a758a453dce00990e58cff572c592be7 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 19 Sep 2008 14:45:32 +0200 Subject: [PATCH] browser: song must not be NULL in set_highlight() The caller must not pass NULL to set_highlight(). Replaced check with assertion. --- src/screen_browser.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/screen_browser.c b/src/screen_browser.c index 0a06e5f..dbc7ada 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; -- 2.30.2