diff --git a/websocketpp/transport/iostream/connection.hpp b/websocketpp/transport/iostream/connection.hpp index e9162101d5..7a92d27ecd 100644 --- a/websocketpp/transport/iostream/connection.hpp +++ b/websocketpp/transport/iostream/connection.hpp @@ -61,7 +61,8 @@ public: typedef typename concurrency_type::mutex_type mutex_type; explicit connection(bool is_server, alog_type& alog, elog_type& elog) - : m_reading(false) + : m_output_stream(NULL) + , m_reading(false) , m_is_server(is_server) , m_alog(alog) , m_elog(elog)