aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2008-01-26 22:16:59 +0000
committerEric Wong <normalperson@yhbt.net>2008-01-26 22:16:59 +0000
commit8fe23fedd25c64a16acb2a95f3cd4b5eaee844ee (patch)
treea97d02565f25dd8185d6c96ad34c31d81b9b5d1f
parentcf7c38032b492ee46c1618fe7bf84fc9480292b5 (diff)
downloadmpd-8fe23fedd25c64a16acb2a95f3cd4b5eaee844ee.tar.gz
mpd-8fe23fedd25c64a16acb2a95f3cd4b5eaee844ee.tar.xz
mpd-8fe23fedd25c64a16acb2a95f3cd4b5eaee844ee.zip
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
Diffstat (limited to '')
-rw-r--r--src/playlist.c3
1 files changed, 1 insertions, 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)