1
0
Fork 0
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:
qu1ck 2022-04-24 12:34:32 -07:00 committed by GitHub
parent d4e1b32e38
commit 07dc81170a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}