aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-03-14 14:36:07 +0100
committerMax Kellermann <max@duempel.org>2009-03-14 14:36:07 +0100
commite5767d6da8db78f622c77369de10cedd979abdbc (patch)
treedd0867e12d5140fed931d7f82a0502972b8920b0 /src
parent7b53504a419b11dbb76539352c855378665bff68 (diff)
downloadmpd-e5767d6da8db78f622c77369de10cedd979abdbc.tar.gz
mpd-e5767d6da8db78f622c77369de10cedd979abdbc.tar.xz
mpd-e5767d6da8db78f622c77369de10cedd979abdbc.zip
command: return COMMAND_RETURN_OK in handle_addid()
At the last line of handle_addid(), the playlist_result value has already been evaluated. Don't return this variable, it's the wrong type.
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 643473b17..513a53e5b 100644
--- a/src/command.c
+++ b/src/command.c
@@ -618,7 +618,7 @@ handle_addid(struct client *client, int argc, char *argv[])
}
client_printf(client, "Id: %u\n", added_id);
- return result;
+ return COMMAND_RETURN_OK;
}
static enum command_return