Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
cbdcd8c3
Commit
cbdcd8c3
authored
Mar 12, 2015
by
Marcin Siodelski
Browse files
[3736] Fixed uninitMemberVar issue reported by cppcheck.
parent
6ed885b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/cc/tests/session_unittests.cc
View file @
cbdcd8c3
...
...
@@ -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.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment