From 819d7f41361946a846729296759d7328e69a0ea9 Mon Sep 17 00:00:00 2001 From: Yat Ho Date: Mon, 21 Oct 2024 12:52:52 +0800 Subject: [PATCH] fix: check `tr_num_parse` result in daemon (#7181) --- daemon/daemon.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/daemon.cc b/daemon/daemon.cc index 70d452520..7b0e02032 100644 --- a/daemon/daemon.cc +++ b/daemon/daemon.cc @@ -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(optstr); optstr) + if (auto const ratio_limit = tr_num_parse(optstr); ratio_limit) { tr_variantDictAddReal(&settings_, TR_KEY_ratio_limit, *ratio_limit); }