summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ce1f053)
raw | patch | inline | side by side (parent: ce1f053)
author | Max Kellermann <max@duempel.org> | |
Sat, 3 Oct 2009 16:32:17 +0000 (18:32 +0200) | ||
committer | Max Kellermann <max@duempel.org> | |
Sat, 3 Oct 2009 16:32:17 +0000 (18:32 +0200) |
A filelist object can never have NULL objects (but an entry's entity
object may be NULL).
object may be NULL).
src/utils.c | patch | blob | history |
diff --git a/src/utils.c b/src/utils.c
index 857e15d9baa7c63f5677345e8deb87e704484e82..7864132a2514158b937451cd926658dcc037c268 100644 (file)
--- a/src/utils.c
+++ b/src/utils.c
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 &&