aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-05-25 20:02:19 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-05-25 20:02:19 +0000
commit82f6f5b7a30d7e64c3671797184381cc0ab0138f (patch)
tree0e41f018bb3308963842bcaecbe59489b8591129 /src
parent121e2063e07e70242700015a446586a84699dcfa (diff)
downloadmpd-82f6f5b7a30d7e64c3671797184381cc0ab0138f.tar.gz
mpd-82f6f5b7a30d7e64c3671797184381cc0ab0138f.tar.xz
mpd-82f6f5b7a30d7e64c3671797184381cc0ab0138f.zip
clear playlist.current on clearPlaylist()
git-svn-id: https://svn.musicpd.org/mpd/trunk@1163 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/playlist.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/playlist.c b/src/playlist.c
index 61679530a..412ddce19 100644
--- a/src/playlist.c
+++ b/src/playlist.c
@@ -163,6 +163,7 @@ int clearPlaylist(FILE * fp) {
playlist.songs[i] = NULL;
}
playlist.length = 0;
+ playlist.current = -1;
incrPlaylistVersion();