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

13 lines
382 B
C++

Fix bogus pointer comparison.
--- gui/crxdisplay.cpp.orig 2017-01-22 12:03:47 UTC
+++ gui/crxdisplay.cpp
@@ -98,7 +98,7 @@ bool CRxDisplay::start_process_loop()
}
else
Sound = new CSound ( settings.serial );
- if ( Sound <= NULL )
+ if ( !Sound )
return false;
connect ( Sound, SIGNAL ( samplesAvailable() ), this, SLOT ( process_rxdata() ) );