mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2026-06-08 17:04:41 -04:00
Prevent some possible segfault errors (patch by Mike W9MDB).
This commit is contained in:
@@ -444,8 +444,12 @@ QString DXLabSuiteCommanderTransceiver::command_with_reply (QString const& cmd)
|
||||
// qDebug () << i << ":" << hex << int (result[i]);
|
||||
// }
|
||||
|
||||
if (result != NULL)
|
||||
{
|
||||
CAT_TRACE (cmd << " -> " << QString {result});
|
||||
return result; // converting raw UTF-8 bytes to QString
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
bool DXLabSuiteCommanderTransceiver::write_to_port (QString const& s)
|
||||
|
||||
Reference in New Issue
Block a user