Using C++ way of zero initializing struct

This commit is contained in:
Robin Müller 2021-03-23 11:35:23 +01:00
parent 1d3d2be853
commit b1670decf7
1 changed files with 1 additions and 1 deletions

View File

@ -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;