diff options
author | Max Kellermann <max@duempel.org> | 2013-01-07 11:33:00 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-07 11:33:00 +0100 |
commit | 400ff1c81253d29b127834c0b5367e83bbb3430c (patch) | |
tree | d3660b68292829a6d1f76c4e32e26fef8bb53a19 /src/DatabaseCommands.cxx | |
parent | d360f17a59fe6ed52ffa74c48c63164cf203d1e0 (diff) | |
download | mpd-400ff1c81253d29b127834c0b5367e83bbb3430c.tar.gz mpd-400ff1c81253d29b127834c0b5367e83bbb3430c.tar.xz mpd-400ff1c81253d29b127834c0b5367e83bbb3430c.zip |
DatabaseQueue: pass DatabaseSelection to Add...()
Diffstat (limited to 'src/DatabaseCommands.cxx')
-rw-r--r-- | src/DatabaseCommands.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/DatabaseCommands.cxx b/src/DatabaseCommands.cxx index 116aa840a..bd5a48b35 100644 --- a/src/DatabaseCommands.cxx +++ b/src/DatabaseCommands.cxx @@ -91,9 +91,9 @@ handle_match_add(Client *client, int argc, char *argv[], bool fold_case) return COMMAND_RETURN_ERROR; } + const DatabaseSelection selection("", true, &filter); GError *error = NULL; - return AddFromDatabase(client->partition, - "", &filter, &error) + return AddFromDatabase(client->partition, selection, &error) ? COMMAND_RETURN_OK : print_error(client, error); } |