diff options
author | Max Kellermann <max@duempel.org> | 2011-09-05 23:12:33 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2011-09-05 23:14:39 +0200 |
commit | dadf1339b57d76057b7a66dce7d3b7b2f7d796f6 (patch) | |
tree | 6bc90138b2cac507d730c6fab8d7e07e10b8359e /src/command.c | |
parent | c2c4228722d0f73ceeda844b09c0bb04c88a6f83 (diff) | |
download | mpd-dadf1339b57d76057b7a66dce7d3b7b2f7d796f6.tar.gz mpd-dadf1339b57d76057b7a66dce7d3b7b2f7d796f6.tar.xz mpd-dadf1339b57d76057b7a66dce7d3b7b2f7d796f6.zip |
dbUtils: pass player_control to findAddIn()
Allow calling findAddIn() without a client object.
Diffstat (limited to '')
-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 3e60e0ac3..dfa3688e0 100644 --- a/src/command.c +++ b/src/command.c @@ -956,7 +956,7 @@ handle_findadd(struct client *client, int argc, char *argv[]) return COMMAND_RETURN_ERROR; } - ret = findAddIn(client, NULL, list); + ret = findAddIn(client->player_control, NULL, list); if (ret == -1) command_error(client, ACK_ERROR_NO_EXIST, "directory or file not found"); |