diff options
author | Martin Anderseck <martin.anderseck@ni.com> | 2021-08-16 14:46:42 +0200 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2021-08-17 15:10:46 -0500 |
commit | 9da2969d967a284370d2106a3b09ad780f8bfcf8 (patch) | |
tree | 934413275f9ad13dd21e0f53c729ac0d85abf1c1 | |
parent | 175e553c44996925dc0f3e135f78716ce6f0e4ea (diff) | |
download | uhd-9da2969d967a284370d2106a3b09ad780f8bfcf8.tar.gz uhd-9da2969d967a284370d2106a3b09ad780f8bfcf8.tar.bz2 uhd-9da2969d967a284370d2106a3b09ad780f8bfcf8.zip |
lib: transport: Initialize _hshake_args_server
Initialize _hshake_args_server to safely use this struct and its
contents in line 70.
-rw-r--r-- | host/lib/transport/nirio/rpc/rpc_client.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; |