From 879a4b38aa556110a4b829310b2c1bd3b46dd02d Mon Sep 17 00:00:00 2001 From: Benjamin Sergeant Date: Sun, 26 May 2019 14:15:51 -0700 Subject: [PATCH] std::chrono::duration is not initialized to 0 units of time --- ixwebsocket/IXWebSocket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ixwebsocket/IXWebSocket.cpp b/ixwebsocket/IXWebSocket.cpp index 2ded8be3..65cd142f 100644 --- a/ixwebsocket/IXWebSocket.cpp +++ b/ixwebsocket/IXWebSocket.cpp @@ -224,7 +224,7 @@ namespace ix using millis = std::chrono::duration; uint32_t retries = 0; - millis duration; + millis duration(0); // Try to connect perpertually while (true)