1
0
Fork 0

src/FDM/JSBSim/input_output/FGfdmSocket.cpp: avoid warning about zero initialisation.

This commit is contained in:
Julian Smith 2020-12-30 15:52:05 +00:00
parent abfb90db32
commit b38a5c95d4

View file

@ -92,7 +92,7 @@ FGfdmSocket::FGfdmSocket(const string& address, int port, int protocol)
if (!LoadWinSockDLL(debug_lvl)) return;
#endif
struct addrinfo hints = { 0 };
struct addrinfo hints = {};
hints.ai_family = AF_INET;
if (protocol == ptUDP)
hints.ai_socktype = SOCK_DGRAM;