From 230af4a5df9201b2305bbdae3ed8a03d54b159b3 Mon Sep 17 00:00:00 2001 From: Christian Beer Date: Wed, 4 Nov 2015 16:21:28 +0100 Subject: [PATCH] Lib: initialize fields in constructor fixes CID 27953 found by Coverity --- lib/gui_rpc_client.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/gui_rpc_client.cpp b/lib/gui_rpc_client.cpp index 10953d53d6..d37cfa1c80 100644 --- a/lib/gui_rpc_client.cpp +++ b/lib/gui_rpc_client.cpp @@ -60,6 +60,10 @@ using std::vector; RPC_CLIENT::RPC_CLIENT() { sock = -1; + start_time = 0; + timeout = 0; + retry = 0; + memset(&addr, 0, sizeof(addr)); } RPC_CLIENT::~RPC_CLIENT() {