Fixed the initialization of the struct addrinfo.
This commit is contained in:
parent
d1f35253e2
commit
12996087de
1 changed files with 2 additions and 1 deletions
|
@ -92,7 +92,8 @@ FGfdmSocket::FGfdmSocket(const string& address, int port, int protocol)
|
|||
if (!LoadWinSockDLL(debug_lvl)) return;
|
||||
#endif
|
||||
|
||||
struct addrinfo hints = {};
|
||||
struct addrinfo hints;
|
||||
memset(&hints, 0, sizeof(struct addrinfo));
|
||||
hints.ai_family = AF_INET;
|
||||
if (protocol == ptUDP)
|
||||
hints.ai_socktype = SOCK_DGRAM;
|
||||
|
|
Loading…
Reference in a new issue