aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/screen_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/screen_file.c b/src/screen_file.c
index d40c8edc9..7fd86f645 100644
--- a/src/screen_file.c
+++ b/src/screen_file.c
@@ -473,7 +473,7 @@ browse_handle_select(screen_t *screen,
mpd_Song *song = entry->entity->info.song;
if( song ) {
- int idx = playlist_get_index_from_file(c, song->file);
+ int idx;
while( (idx=playlist_get_index_from_file(c, song->file))>=0 )
mpdclient_cmd_delete(c, idx);