diff options
Diffstat (limited to '')
-rw-r--r-- | src/playlist/PlsPlaylistPlugin.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/playlist/PlsPlaylistPlugin.cxx b/src/playlist/PlsPlaylistPlugin.cxx index 6994c8a3d..efd74e9c5 100644 --- a/src/playlist/PlsPlaylistPlugin.cxx +++ b/src/playlist/PlsPlaylistPlugin.cxx @@ -59,7 +59,7 @@ pls_parser(GKeyFile *keyfile, std::forward_list<SongPointer> &songs) } } - while (num_entries > 0) { + for (; num_entries > 0; --num_entries) { Song *song; char key[64]; @@ -95,7 +95,6 @@ pls_parser(GKeyFile *keyfile, std::forward_list<SongPointer> &songs) song->tag = tag.CommitNew(); songs.emplace_front(song); - num_entries--; } } |