mirror of
https://github.com/transmission/transmission
synced 2024-12-26 09:37:56 +00:00
Fix fields handling in session-get (#2972)
This commit is contained in:
parent
d4e1b32e38
commit
07dc81170a
1 changed files with 1 additions and 1 deletions
|
@ -2364,7 +2364,7 @@ static char const* sessionGet(tr_session* s, tr_variant* args_in, tr_variant* ar
|
|||
for (size_t i = 0; i < field_count; ++i)
|
||||
{
|
||||
auto field_name = std::string_view{};
|
||||
if (tr_variantGetStrView(tr_variantListChild(fields, i), &field_name))
|
||||
if (!tr_variantGetStrView(tr_variantListChild(fields, i), &field_name))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue