summaryrefslogtreecommitdiffstats
path: root/apps/playlist.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/playlist.c')
-rw-r--r--apps/playlist.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/playlist.c b/apps/playlist.c
index b82736bbac..599022817d 100644
--- a/apps/playlist.c
+++ b/apps/playlist.c
@@ -3509,11 +3509,9 @@ int playlist_set_current(struct playlist_info* playlist)
current_playlist.dirlen = playlist->dirlen;
if (playlist->indices && playlist->indices != current_playlist.indices)
- {
memcpy((void*)current_playlist.indices, (void*)playlist->indices,
playlist->max_playlist_size*sizeof(*playlist->indices));
- dc_init_filerefs(&current_playlist, 0, current_playlist.max_playlist_size);
- }
+ dc_init_filerefs(&current_playlist, 0, current_playlist.max_playlist_size);
current_playlist.first_index = playlist->first_index;
current_playlist.amount = playlist->amount;