Lib: initialize fields in constructor

fixes CID 27953 found by Coverity
This commit is contained in:
Christian Beer 2015-11-04 16:21:28 +01:00
parent e90eabf5e5
commit 230af4a5df
1 changed files with 4 additions and 0 deletions

View File

@ -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() {