From 44386f32b17ee74988178f9eb6d0b787b7863232 Mon Sep 17 00:00:00 2001 From: Michael West Date: Mon, 28 Oct 2013 12:44:50 -0700 Subject: CID 1104308: Fixed uninitialized scalar. --- host/lib/usrp/cores/tx_dsp_core_200.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'host/lib/usrp') 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; -- cgit v1.2.3