diff options
author | Max Kellermann <max@duempel.org> | 2008-09-23 23:59:55 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-09-23 23:59:55 +0200 |
commit | ad92d9a89489f04f0c3bbcff4ad920cb81e0ab9d (patch) | |
tree | 494f778556837ba871d9b3770e072998a8aaa244 /src | |
parent | d42959c5ce76fcca87b9eeb89ce44fcae28bda1d (diff) | |
download | mpd-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 'src')
-rw-r--r-- | src/command.c | 2 |
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) { |