From 82d923208458348118fc272e0d49eb6280e55088 Mon Sep 17 00:00:00 2001 From: Frank Aurich <1100101@gmail.com> Date: Fri, 29 Oct 2021 08:54:46 +0200 Subject: [PATCH] Fix RPC 'table' mode not being properly activated (#2058) * Fix RPC 'table' mode not being properly activated. --- libtransmission/rpcimpl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtransmission/rpcimpl.cc b/libtransmission/rpcimpl.cc index 6f83c58b5..0ef27175c 100644 --- a/libtransmission/rpcimpl.cc +++ b/libtransmission/rpcimpl.cc @@ -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;