From 9da2969d967a284370d2106a3b09ad780f8bfcf8 Mon Sep 17 00:00:00 2001 From: Martin Anderseck Date: Mon, 16 Aug 2021 14:46:42 +0200 Subject: lib: transport: Initialize _hshake_args_server Initialize _hshake_args_server to safely use this struct and its contents in line 70. --- host/lib/transport/nirio/rpc/rpc_client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'host/lib/transport') diff --git a/host/lib/transport/nirio/rpc/rpc_client.cpp b/host/lib/transport/nirio/rpc/rpc_client.cpp index efc802e89..64494ae6e 100644 --- a/host/lib/transport/nirio/rpc/rpc_client.cpp +++ b/host/lib/transport/nirio/rpc/rpc_client.cpp @@ -27,7 +27,7 @@ rpc_client::rpc_client(const std::string& server, const std::string& port, uint32_t process_id, uint32_t host_id) - : _socket(_io_service) + : _socket(_io_service), _hshake_args_server() { // Fill in handshake info _hshake_args_client.version = CURRENT_VERSION; -- cgit v1.2.3