From 6c7ca9283459d89fba789767e4313e9528a8dd0c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 3 Oct 2009 18:32:17 +0200 Subject: [PATCH] utils: removed filelist_get()!=NULL check A filelist object can never have NULL objects (but an entry's entity object may be NULL). --- src/utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 && -- 2.30.2