aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael West <michael.west@ettus.com>2013-10-28 12:44:50 -0700
committerMichael West <michael.west@ettus.com>2013-10-28 12:44:50 -0700
commit44386f32b17ee74988178f9eb6d0b787b7863232 (patch)
treee8e47d65ce030c576b9bb1c654218f2cac6c5fe7
parent7cf5e2aeb9cf40b483b11b77d8242fa231998de6 (diff)
downloaduhd-44386f32b17ee74988178f9eb6d0b787b7863232.tar.gz
uhd-44386f32b17ee74988178f9eb6d0b787b7863232.tar.bz2
uhd-44386f32b17ee74988178f9eb6d0b787b7863232.zip
CID 1104308: Fixed uninitialized scalar.
-rw-r--r--host/lib/usrp/cores/tx_dsp_core_200.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/host/lib/usrp/cores/tx_dsp_core_200.cpp b/host/lib/usrp/cores/tx_dsp_core_200.cpp
index 808f13028..f8aa87aa3 100644
--- a/host/lib/usrp/cores/tx_dsp_core_200.cpp
+++ b/host/lib/usrp/cores/tx_dsp_core_200.cpp
@@ -60,6 +60,9 @@ public:
):
_iface(iface), _dsp_base(dsp_base), _ctrl_base(ctrl_base), _sid(sid)
{
+ // previously uninitialized - assuming zero for all
+ _tick_rate = _link_rate = _host_extra_scaling = _fxpt_scalar_correction = 0.0;
+
//init to something so update method has reasonable defaults
_scaling_adjustment = 1.0;
_dsp_extra_scaling = 1.0;