Skip to content

Commit

Permalink
Merge pull request #398 from rec/uninitialized-variable
Browse files Browse the repository at this point in the history
Initialize websocketpp::transport::asio::endpoint::m_io_service to NULL.
  • Loading branch information
zaphoyd committed Jan 16, 2015
2 parents 802e34b + d792639 commit 875d420
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion websocketpp/transport/asio/endpoint.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ class endpoint : public config::socket_type {

// generate and manage our own io_service
explicit endpoint()
: m_external_io_service(false)
: m_io_service(NULL)
, m_external_io_service(false)
, m_listen_backlog(0)
, m_reuse_addr(false)
, m_state(UNINITIALIZED)
Expand Down

0 comments on commit 875d420

Please sign in to comment.