Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 3 commits into from
Oct 29, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion libtransmission/rpcimpl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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) && (0 == strcmp(strVal, "table")) ?
1100101 marked this conversation as resolved.
Show resolved Hide resolved
TR_FORMAT_TABLE :
TR_FORMAT_OBJECT;

Expand Down