diff --git a/playlist.c b/playlist.c index e81d5434ec..a1aeb3ddc6 100644 --- a/playlist.c +++ b/playlist.c @@ -180,11 +180,8 @@ void playlist_update(playlist_t *playlist, size_t idx, if (idx > playlist->size) return; - entry = &playlist->entries[idx]; + entry = &playlist->entries[idx]; - if (!entry) - return; - entry->path = path ? strdup(path) : entry->path; entry->label = label ? strdup(label) : entry->label; entry->core_path = core_path ? strdup(core_path) : entry->core_path;