Commit cbdcd8c3 authored by Marcin Siodelski's avatar Marcin Siodelski
Browse files

[3736] Fixed uninitMemberVar issue reported by cppcheck.

parent 6ed885b7
......@@ -75,7 +75,8 @@ public:
io_service_(io_service),
ep_(file),
acceptor_(io_service_, ep_),
socket_(io_service_)
socket_(io_service_),
data_buf_(1024)
{
acceptor_.async_accept(socket_, boost::bind(&TestDomainSocket::acceptHandler,
_1));
......@@ -115,7 +116,7 @@ public:
void setSendLname() {
// ignore whatever data we get, send back an lname
asio::async_read(socket_, asio::buffer(data_buf, 0),
asio::async_read(socket_, asio::buffer(&data_buf_[0], 0),
boost::bind(&TestDomainSocket::sendLname, this));
}
......@@ -124,7 +125,7 @@ private:
asio::local::stream_protocol::endpoint ep_;
asio::local::stream_protocol::acceptor acceptor_;
asio::local::stream_protocol::socket socket_;
char data_buf[1024];
std::vector<char> data_buf_;
};
/// \brief Pair holding header and data of a message sent over the connection.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment