Using C++ way of zero initializing struct
This commit is contained in:
1 parent
1d3d2be853
commit
b1670decf7
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user