From 8fe23fedd25c64a16acb2a95f3cd4b5eaee844ee Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 26 Jan 2008 22:16:59 +0000 Subject: If clearing stored playlist fails, don't return error + OK. but only the error. this was caused by always having the handleStoredPlaylist function return 0. From qball, r7105 in trunk git-svn-id: https://svn.musicpd.org/mpd/branches/branch-0.13.0-fixes@7163 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/playlist.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/playlist.c b/src/playlist.c index d8f2c6b65..02528908b 100644 --- a/src/playlist.c +++ b/src/playlist.c @@ -221,8 +221,7 @@ int clearPlaylist(int fd) int clearStoredPlaylist(int fd, char *utf8file) { - removeAllFromStoredPlaylistByPath(fd, utf8file); - return 0; + return removeAllFromStoredPlaylistByPath(fd, utf8file); } int showPlaylist(int fd) -- cgit v1.2.3