From aae721a9d0768ec7645590d3e78d708737e5edb0 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 24 May 2016 04:26:24 +0200 Subject: [PATCH] Remove logically dead code --- playlist.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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;