From 339e043ff2128ded37c9dc5ccf3d74d1689b6c4a Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 14 Jul 2019 13:17:51 +0200 Subject: [PATCH] Fix 'declaration hides parameter' --- playlist.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/playlist.c b/playlist.c index 20fbe20075..5931ae18c6 100644 --- a/playlist.c +++ b/playlist.c @@ -797,10 +797,11 @@ bool playlist_push(playlist_t *playlist, if (playlist->size == playlist->cap) { - struct playlist_entry *entry = &playlist->entries[playlist->cap - 1]; + struct playlist_entry *last_entry = + &playlist->entries[playlist->cap - 1]; - if (entry) - playlist_free_entry(entry); + if (last_entry) + playlist_free_entry(last_entry); playlist->size--; }