aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-09-23 23:59:55 +0200
committerEric Wong <normalperson@yhbt.net>2008-09-26 23:51:37 -0700
commit8bd26c59460a8cd4801cec28afc4fb22e4d89681 (patch)
treee13bd90cd46a58c9de5d9903175da533cd5e2d6b /src
parentd8f053de8962c5a393b50db9ad0fdfbe4d7517b5 (diff)
downloadmpd-8bd26c59460a8cd4801cec28afc4fb22e4d89681.tar.gz
mpd-8bd26c59460a8cd4801cec28afc4fb22e4d89681.tar.xz
mpd-8bd26c59460a8cd4801cec28afc4fb22e4d89681.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 'src')
-rw-r--r--src/command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/command.c b/src/command.c
index f5996c576..616132bea 100644
--- a/src/command.c
+++ b/src/command.c
@@ -463,7 +463,7 @@ static int handleAddId(int fd, mpd_unused int *permission,
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) {