diff options
Diffstat (limited to 'src/command.c')
-rw-r--r-- | src/command.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/command.c b/src/command.c index 452568238..dc71f1d1a 100644 --- a/src/command.c +++ b/src/command.c @@ -830,10 +830,8 @@ handle_update(struct client *client, mpd_unused int argc, char *argv[]) unsigned ret; assert(argc <= 2); - if (argc == 2 && !(path = sanitizePathDup(argv[1]))) { - command_error(client, ACK_ERROR_ARG, "invalid path"); - return COMMAND_RETURN_ERROR; - } + if (argc == 2) + path = g_strdup(argv[1]); ret = directory_update_init(path); if (ret > 0) { |