From ab52e4ebca86000a105e0d9ae0f8b5f1b83f9021 Mon Sep 17 00:00:00 2001 From: Michael West Date: Mon, 28 Oct 2013 13:00:43 -0700 Subject: CID 1104319: Fixed uninitialized scalar. CID 1104318: Fixed uninitialized scalar. --- host/lib/usrp/usrp2/usrp2_clk_regs.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'host/lib') diff --git a/host/lib/usrp/usrp2/usrp2_clk_regs.hpp b/host/lib/usrp/usrp2/usrp2_clk_regs.hpp index 8b185eac0..45c0859d8 100644 --- a/host/lib/usrp/usrp2/usrp2_clk_regs.hpp +++ b/host/lib/usrp/usrp2/usrp2_clk_regs.hpp @@ -22,8 +22,9 @@ class usrp2_clk_regs_t { public: - usrp2_clk_regs_t(void) { ; } + usrp2_clk_regs_t(void):test(0),fpga(0),adc(0),dac(0),serdes(0),exp(0),tx_db(0),rx_db(0) { ; } usrp2_clk_regs_t(usrp2_iface::rev_type rev) { + fpga = adc = serdes = exp = tx_db = 0; test = 0; fpga = 1; dac = 3; @@ -54,7 +55,7 @@ public: //dont throw, it may be unitialized break; } - + rx_db = 7; } -- cgit v1.2.3