From: Max Kellermann Date: Sat, 3 Oct 2009 16:32:17 +0000 (+0200) Subject: utils: removed filelist_get()!=NULL check X-Git-Tag: release-0.16~198 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6c7ca9283459d89fba789767e4313e9528a8dd0c;p=ncmpc.git utils: removed filelist_get()!=NULL check A filelist object can never have NULL objects (but an entry's entity object may be NULL). --- diff --git a/src/utils.c b/src/utils.c index 857e15d..7864132 100644 --- a/src/utils.c +++ b/src/utils.c @@ -84,8 +84,8 @@ gcmp_list_from_path(struct mpdclient *c, const gchar *path, return list; for (i = 0; i < filelist_length(filelist); ++i) { - const struct filelist_entry *entry = filelist_get(filelist, i); - const struct mpd_entity *entity = entry ? entry->entity : NULL; + const struct mpd_entity *entity = + filelist_get(filelist, i)->entity; char *name = NULL; if (entity != NULL &&