From: Max Kellermann Date: Fri, 19 Sep 2008 12:45:32 +0000 (+0200) Subject: browser: song must not be NULL in set_highlight() X-Git-Tag: v0.12_alpha1~225 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d13c5a10a758a453dce00990e58cff572c592be7;p=ncmpc.git browser: song must not be NULL in set_highlight() The caller must not pass NULL to set_highlight(). Replaced check with assertion. --- 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;