From 571a1ce21ece4e7193be7a18e6d7b011a3ba6185 Mon Sep 17 00:00:00 2001 From: Arne Fischer Date: Mon, 18 Jun 2018 13:59:10 +0200 Subject: [PATCH] Added nullptr initialization for frame context. --- network/WebSocket/WebSocketConnection.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/network/WebSocket/WebSocketConnection.cpp b/network/WebSocket/WebSocketConnection.cpp index f4c2e24..00e1f32 100644 --- a/network/WebSocket/WebSocketConnection.cpp +++ b/network/WebSocket/WebSocketConnection.cpp @@ -130,6 +130,7 @@ namespace awsiotsdk { p_wslay_frame_Callbacks_->genmask_callback = std::bind(&WebSocketConnection::WssFrameGenMaskCallback, this, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3); + p_wslay_frame_Context_ = nullptr; wss_frame_read_ = std::unique_ptr(new wslay_frame_iocb()); wss_frame_write_ = std::unique_ptr(new wslay_frame_iocb());