diff options
author | Michael West <michael.west@ettus.com> | 2013-10-28 12:39:42 -0700 |
---|---|---|
committer | Michael West <michael.west@ettus.com> | 2013-10-28 12:39:42 -0700 |
commit | b91f28ad65a2581f0223439eaded51da19694358 (patch) | |
tree | ba5b7b0c2b245ac186b701891158c6a8521dde75 /host | |
parent | f806f6a8031a7f9cf5eacbe858bfa8aa95d21dd4 (diff) | |
download | uhd-b91f28ad65a2581f0223439eaded51da19694358.tar.gz uhd-b91f28ad65a2581f0223439eaded51da19694358.tar.bz2 uhd-b91f28ad65a2581f0223439eaded51da19694358.zip |
CID 1104315: Fixed uninitialized scalar field.
Diffstat (limited to 'host')
-rw-r--r-- | host/lib/usrp/cores/rx_dsp_core_200.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/host/lib/usrp/cores/rx_dsp_core_200.cpp b/host/lib/usrp/cores/rx_dsp_core_200.cpp index ef6b85de9..2fdc220b5 100644 --- a/host/lib/usrp/cores/rx_dsp_core_200.cpp +++ b/host/lib/usrp/cores/rx_dsp_core_200.cpp @@ -59,8 +59,11 @@ public: const size_t dsp_base, const size_t ctrl_base, const boost::uint32_t sid, const bool lingering_packet ): - _iface(iface), _dsp_base(dsp_base), _ctrl_base(ctrl_base), _sid(sid) + _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; |