aboutsummaryrefslogtreecommitdiffstats
path: root/src/command.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-09-23 23:59:55 +0200
committerMax Kellermann <max@duempel.org>2008-09-23 23:59:55 +0200
commitad92d9a89489f04f0c3bbcff4ad920cb81e0ab9d (patch)
tree494f778556837ba871d9b3770e072998a8aaa244 /src/command.c
parentd42959c5ce76fcca87b9eeb89ce44fcae28bda1d (diff)
downloadmpd-ad92d9a89489f04f0c3bbcff4ad920cb81e0ab9d.tar.gz
mpd-ad92d9a89489f04f0c3bbcff4ad920cb81e0ab9d.tar.xz
mpd-ad92d9a89489f04f0c3bbcff4ad920cb81e0ab9d.zip
command: fix command "addid"
With patch 8d2830b3, I broke "addid": it did not return the id of the new song, because of a typo in the return condition (== instead of !=).
Diffstat (limited to '')
-rw-r--r--src/command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/command.c b/src/command.c
index 0cd115cc5..3a4a218e9 100644
--- a/src/command.c
+++ b/src/command.c
@@ -477,7 +477,7 @@ static int handleAddId(struct client *client,
int added_id;
enum playlist_result result = addToPlaylist(argv[1], &added_id);
- if (result == PLAYLIST_RESULT_SUCCESS)
+ if (result != PLAYLIST_RESULT_SUCCESS)
return result;
if (argc == 3) {