mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-21 19:55:20 -05:00
Fix a potential crash in the Omni-Rig interface
Misconfiguration of the PTT Method could cause a null pointer dereference.
This commit is contained in:
parent
c3346b25c2
commit
518aa0c8eb
@ -662,10 +662,9 @@ void OmniRigTransceiver::do_ptt (bool on)
|
||||
port_->SetDtr (on);
|
||||
}
|
||||
}
|
||||
else
|
||||
else if (wrapped_)
|
||||
{
|
||||
TRACE_CAT ("OmniRigTransceiver", "set PTT using basic transceiver");
|
||||
Q_ASSERT (wrapped_);
|
||||
TransceiverState new_state {wrapped_->state ()};
|
||||
new_state.ptt (on);
|
||||
wrapped_->set (new_state, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user