summaryrefslogtreecommitdiff
path: root/modules/websocket/lws_peer.cpp
diff options
context:
space:
mode:
authormarxin <mliska@suse.cz>2019-02-18 20:28:40 +0100
committermarxin <mliska@suse.cz>2019-02-18 21:54:31 +0100
commit155cbe0b37ceaed33c1917f61201c1b151747469 (patch)
treecf10ea4b3aa24cbf925761146aab6ae5eb305d13 /modules/websocket/lws_peer.cpp
parent07498d313c45f54b0a7c6c0b23e635bddf6f0523 (diff)
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);