Fix 'declaration hides parameter'

This commit is contained in:
twinaphex 2019-07-14 13:17:51 +02:00
parent 2e3162cdca
commit 339e043ff2

View File

@ -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--;
}