Using C++ way of zero initializing struct
This commit is contained in:
parent
1d3d2be853
commit
b1670decf7
@ -33,7 +33,7 @@ ReturnValue_t TcpTmTcServer::initialize() {
|
||||
|
||||
int retval = 0;
|
||||
struct addrinfo *addrResult = nullptr;
|
||||
struct addrinfo hints = { 0 };
|
||||
struct addrinfo hints = {};
|
||||
|
||||
hints.ai_family = AF_INET;
|
||||
hints.ai_socktype = SOCK_STREAM;
|
||||
|
Loading…
Reference in New Issue
Block a user