Skip to content

Commit 875d420

Browse files
committed
Merge pull request zaphoyd#398 from rec/uninitialized-variable
Initialize websocketpp::transport::asio::endpoint::m_io_service to NULL.
2 parents 802e34b + d792639 commit 875d420

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

websocketpp/transport/asio/endpoint.hpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ class endpoint : public config::socket_type {
8787

8888
// generate and manage our own io_service
8989
explicit endpoint()
90-
: m_external_io_service(false)
90+
: m_io_service(NULL)
91+
, m_external_io_service(false)
9192
, m_listen_backlog(0)
9293
, m_reuse_addr(false)
9394
, m_state(UNINITIALIZED)

0 commit comments

Comments
 (0)