Fix RPC 'table' mode not being properly activated (#2058)

* Fix RPC 'table' mode not being properly activated.
This commit is contained in:
Frank Aurich 2021-10-29 08:54:46 +02:00 committed by GitHub
parent 5da0a5d59b
commit 82d9232084
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -879,7 +879,7 @@ static char const* torrentGet(tr_session* session, tr_variant* args_in, tr_varia
tr_variant* const list = tr_variantDictAddList(args_out, TR_KEY_torrents, std::size(torrents) + 1);
char const* strVal = nullptr;
tr_format const format = tr_variantDictFindStr(args_in, TR_KEY_format, &strVal, nullptr) && strcmp(strVal, "table") ?
tr_format const format = tr_variantDictFindStr(args_in, TR_KEY_format, &strVal, nullptr) && strcmp(strVal, "table") == 0 ?
TR_FORMAT_TABLE :
TR_FORMAT_OBJECT;