mirror of
https://github.com/transmission/transmission
synced 2025-03-10 14:13:23 +00:00
fix: crash in printTorrentList() (#6819)
* Fix crash in printTorrentList * code review: accept nullptr setme
This commit is contained in:
parent
fcb40c2f22
commit
6c1cee5f79
1 changed files with 4 additions and 1 deletions
|
@ -57,7 +57,10 @@ template<typename T>
|
|||
{
|
||||
if (auto val = var->value_if<T>())
|
||||
{
|
||||
*setme = *val;
|
||||
if (setme)
|
||||
{
|
||||
*setme = *val;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue