summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--louloulibs/network/tcp_client_socket_handler.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/louloulibs/network/tcp_client_socket_handler.hpp b/louloulibs/network/tcp_client_socket_handler.hpp
index 72f68d0..75e1364 100644
--- a/louloulibs/network/tcp_client_socket_handler.hpp
+++ b/louloulibs/network/tcp_client_socket_handler.hpp
@@ -62,9 +62,9 @@ class TCPClientSocketHandler: public TCPSocketHandler
* triggered a EINPROGRESS error when connect()ing to it, to reuse it
* directly when connect() is called again.
*/
- struct addrinfo addrinfo;
- struct sockaddr_in6 ai_addr;
- socklen_t ai_addrlen;
+ struct addrinfo addrinfo{};
+ struct sockaddr_in6 ai_addr{};
+ socklen_t ai_addrlen{};
/**
* Hostname we are connected/connecting to
@@ -75,7 +75,7 @@ class TCPClientSocketHandler: public TCPSocketHandler
*/
std::string port;
- uint16_t local_port;
+ uint16_t local_port{};
bool connected;
bool connecting;