aboutsummaryrefslogtreecommitdiffstats
path: root/src/command.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2011-09-05 23:12:33 +0200
committerMax Kellermann <max@duempel.org>2011-09-05 23:14:39 +0200
commitdadf1339b57d76057b7a66dce7d3b7b2f7d796f6 (patch)
tree6bc90138b2cac507d730c6fab8d7e07e10b8359e /src/command.c
parentc2c4228722d0f73ceeda844b09c0bb04c88a6f83 (diff)
downloadmpd-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 'src/command.c')
-rw-r--r--src/command.c2
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");