opnsense-ports/comms/linpsk/files/patch-gui_linpsk.cpp
Franco Fichtner c0ce196c0c */*: sync with upstream
Taken from: FreeBSD
2017-02-06 05:57:52 +01:00

22 lines
734 B
C++

Fix bogus pointer comparison.
--- gui/linpsk.cpp.orig 2017-01-22 12:03:55 UTC
+++ gui/linpsk.cpp
@@ -387,7 +387,7 @@ void LinPSK::startTx()
Info = "BPSK";
break;
}
- if ( Sound <= NULL ) // Only create Sound Device once for output
+ if ( !Sound ) // Only create Sound Device once for output
{
if ( settings.DemoMode )
{
@@ -401,7 +401,7 @@ void LinPSK::startTx()
Sound = new CSound ( settings.serial );
connect ( Sound, SIGNAL ( samplesAvailable() ), this, SLOT ( process_txdata() ) );
}
- if ( Sound <= NULL )
+ if ( !Sound )
{
QMessageBox::critical ( 0, " Programm Error! LinPsk", "Could not create Sound Device for Output" );
TxDisplay->TxFunctions->setStatus ( ON );