summaryrefslogtreecommitdiff
path: root/modules/websocket/lws_peer.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-02-18 22:22:46 +0100
committerGitHub <noreply@github.com>2019-02-18 22:22:46 +0100
commit146be33cdecb1190a4b13cee2463a676fe7fd42d (patch)
treebb7ba725013fe9fc6ad86530cef4db629d3f549c /modules/websocket/lws_peer.cpp
parent0fa3b808509dc0a86ab986320e601c12b988c205 (diff)
parent155cbe0b37ceaed33c1917f61201c1b151747469 (diff)
Merge pull request #26027 from marxin/fix-werrors-with-all
Fix warnings seen with warnings=all and recent GCC 8.2.
Diffstat (limited to 'modules/websocket/lws_peer.cpp')
-rw-r--r--modules/websocket/lws_peer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/websocket/lws_peer.cpp b/modules/websocket/lws_peer.cpp
index 8afcdfe62e..a7c85450fa 100644
--- a/modules/websocket/lws_peer.cpp
+++ b/modules/websocket/lws_peer.cpp
@@ -102,7 +102,7 @@ Error LWSPeer::write_wsi() {
return OK;
int read = 0;
- uint8_t is_string;
+ uint8_t is_string = 0;
PoolVector<uint8_t>::Write rw = _packet_buffer.write();
_out_buffer.read_packet(&(rw[LWS_PRE]), _packet_buffer.size() - LWS_PRE, &is_string, read);