mirror of
https://github.com/transmission/transmission
synced 2024-12-22 07:42:37 +00:00
fix: check tr_num_parse
result in daemon (#7181)
This commit is contained in:
parent
a8bf44eeb1
commit
819d7f4136
1 changed files with 1 additions and 1 deletions
|
@ -603,7 +603,7 @@ bool tr_daemon::parse_args(int argc, char const* const* argv, bool* dump_setting
|
|||
break;
|
||||
|
||||
case 953:
|
||||
if (auto const ratio_limit = tr_num_parse<double>(optstr); optstr)
|
||||
if (auto const ratio_limit = tr_num_parse<double>(optstr); ratio_limit)
|
||||
{
|
||||
tr_variantDictAddReal(&settings_, TR_KEY_ratio_limit, *ratio_limit);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue