diff --git a/src/screen_browser.c b/src/screen_browser.c
index dd97bb22f0f91815dd1e8eda326db64f72ad6dfb..a19fa84f40c7bcfa7e7f927e78150505d7e1be20 100644 (file)
--- a/src/screen_browser.c
+++ b/src/screen_browser.c
const struct filelist_entry *entry;
const struct mpd_entity *entity;
- if (fl == NULL || idx >= filelist_length(fl))
- return NULL;
+ assert(fl != NULL);
+ assert(idx < filelist_length(fl));
entry = filelist_get(fl, idx);
assert(entry != NULL);