From 21697d8e82bf37cd5182241aae49453dd4b6078f Mon Sep 17 00:00:00 2001 From: kevin Date: Thu, 22 Dec 2022 15:29:00 -0500 Subject: [PATCH] cwIo.cpp : Fix some benign uninitialized variables. --- cwIo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cwIo.cpp b/cwIo.cpp index 48c5a96..1c7146e 100644 --- a/cwIo.cpp +++ b/cwIo.cpp @@ -214,7 +214,7 @@ namespace cw rc_t _ioParse( io_t* p, const object_t* cfg ) { - rc_t rc; + rc_t rc = kOkRC; const object_t* ioCfg; 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; io_t* p = _handleToPtr(h); - sample_t* meterA; + sample_t* meterA = nullptr; audioDev_t* ad; if((ad = _audioDeviceIndexToRecd(p,devIdx)) == nullptr )