cwIo.cpp : Fix some benign uninitialized variables.

This commit is contained in:
kevin 2022-12-22 15:29:00 -05:00
parent 15e60b429e
commit 21697d8e82

View File

@ -214,7 +214,7 @@ namespace cw
rc_t _ioParse( io_t* p, const object_t* cfg ) rc_t _ioParse( io_t* p, const object_t* cfg )
{ {
rc_t rc; rc_t rc = kOkRC;
const object_t* ioCfg; const object_t* ioCfg;
if((ioCfg = cfg->find("io")) == nullptr ) if((ioCfg = cfg->find("io")) == nullptr )
{ {
@ -2427,7 +2427,7 @@ const cw::io::sample_t* cw::io::audioDeviceMeters( handle_t h, unsigned devIdx,
{ {
rc_t rc = kOkRC; rc_t rc = kOkRC;
io_t* p = _handleToPtr(h); io_t* p = _handleToPtr(h);
sample_t* meterA; sample_t* meterA = nullptr;
audioDev_t* ad; audioDev_t* ad;
if((ad = _audioDeviceIndexToRecd(p,devIdx)) == nullptr ) if((ad = _audioDeviceIndexToRecd(p,devIdx)) == nullptr )