aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/usrp2/usrp2_impl.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-06-24 16:20:33 -0700
committerJosh Blum <josh@joshknows.com>2011-06-24 16:20:33 -0700
commit25d6e39c6af61acde0616cf50178d40741c4eace (patch)
tree80178578ab91d1243de6869c40b2f749d3bb966a /host/lib/usrp/usrp2/usrp2_impl.cpp
parentd4ca69984701bda2299186140c7b551f19f9b550 (diff)
downloaduhd-25d6e39c6af61acde0616cf50178d40741c4eace.tar.gz
uhd-25d6e39c6af61acde0616cf50178d40741c4eace.tar.bz2
uhd-25d6e39c6af61acde0616cf50178d40741c4eace.zip
usrp2: init the usrp2_ctrl_data_t to make valgrind happy
Diffstat (limited to 'host/lib/usrp/usrp2/usrp2_impl.cpp')
-rw-r--r--host/lib/usrp/usrp2/usrp2_impl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/usrp/usrp2/usrp2_impl.cpp b/host/lib/usrp/usrp2/usrp2_impl.cpp
index b5e50507c..aa584ac8b 100644
--- a/host/lib/usrp/usrp2/usrp2_impl.cpp
+++ b/host/lib/usrp/usrp2/usrp2_impl.cpp
@@ -93,7 +93,7 @@ static device_addrs_t usrp2_find(const device_addr_t &hint_){
);
//send a hello control packet
- usrp2_ctrl_data_t ctrl_data_out;
+ usrp2_ctrl_data_t ctrl_data_out = usrp2_ctrl_data_t();
ctrl_data_out.proto_ver = uhd::htonx<boost::uint32_t>(USRP2_FW_COMPAT_NUM);
ctrl_data_out.id = uhd::htonx<boost::uint32_t>(USRP2_CTRL_ID_WAZZUP_BRO);
udp_transport->send(boost::asio::buffer(&ctrl_data_out, sizeof(ctrl_data_out)));