Browse Source

webapiadapterbase : Initialize plugin manager pointer

Initialize the plugin manager pointer so a newly constructed adapter has a
defined pointer value before it is accessed.

Found by cppcheck (uninitMemberVar).

Signed-off-by: Robin Getz <rgetz503@gmail.com>
chirpmodem-v8.0.0
Robin Getz 2 months ago
parent
commit
282dd76efe
No known key found for this signature in database
GPG Key ID: 51C7231FFED0E060
  1. 3
      sdrbase/webapi/webapiadapterbase.cpp

3
sdrbase/webapi/webapiadapterbase.cpp

@ -27,7 +27,8 @@ @@ -27,7 +27,8 @@
#include "dsp/spectrumsettings.h"
#include "webapiadapterbase.h"
WebAPIAdapterBase::WebAPIAdapterBase()
WebAPIAdapterBase::WebAPIAdapterBase() :
m_pluginManager(nullptr)
{}
WebAPIAdapterBase::~WebAPIAdapterBase()

Loading…
Cancel
Save