src/FDM/JSBSim/input_output/FGfdmSocket.cpp: avoid warning about zero initialisation.
This commit is contained in:
parent
abfb90db32
commit
b38a5c95d4
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue