diff options
author | Qball Cow <qball@qballcow.nl> | 2007-12-27 00:03:49 +0000 |
---|---|---|
committer | Qball Cow <qball@qballcow.nl> | 2007-12-27 00:03:49 +0000 |
commit | 0d26248a0d8cb2e5cf6be5a438a18b16793bbb63 (patch) | |
tree | 6b807111acf83291d9ee67ee7bddfba2a0aebb8f | |
parent | f3d986e97b8f1b0d9557760503bca635bf51f34c (diff) | |
download | mpd-0d26248a0d8cb2e5cf6be5a438a18b16793bbb63.tar.gz mpd-0d26248a0d8cb2e5cf6be5a438a18b16793bbb63.tar.xz mpd-0d26248a0d8cb2e5cf6be5a438a18b16793bbb63.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.
git-svn-id: https://svn.musicpd.org/mpd/trunk@7105 09075e82-0dd4-0310-85a5-a0d7c8717e4f
-rw-r--r-- | src/playlist.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/playlist.c b/src/playlist.c index 5c14ff406..ce2748930 100644 --- a/src/playlist.c +++ b/src/playlist.c @@ -238,8 +238,7 @@ int clearPlaylist(int fd) int clearStoredPlaylist(int fd, char *utf8file) { - removeAllFromStoredPlaylistByPath(fd, utf8file); - return 0; + return removeAllFromStoredPlaylistByPath(fd, utf8file); } int showPlaylist(int fd) |