fix: crash in printTorrentList() (#6819)
* Fix crash in printTorrentList * code review: accept nullptr setme
This commit is contained in:
parent
fcb40c2f22
commit
6c1cee5f79
|
@ -57,7 +57,10 @@ template<typename T>
|
|||
{
|
||||
if (auto val = var->value_if<T>())
|
||||
{
|
||||
*setme = *val;
|
||||
if (setme)
|
||||
{
|
||||
*setme = *val;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue