Browse Source

net_ws: fix possible garabe in return value due to uninitialized value

pull/2/head
Alibek Omarov 6 years ago
parent
commit
66d1a632a7
  1. 2
      engine/common/net_ws.c

2
engine/common/net_ws.c

@ -413,7 +413,7 @@ int NET_GetHostByName( const char *hostname ) @@ -413,7 +413,7 @@ int NET_GetHostByName( const char *hostname )
#ifdef HAVE_GETADDRINFO
struct addrinfo *ai = NULL, *cur;
struct addrinfo hints;
int ip;
int ip = 0;
memset( &hints, 0, sizeof( hints ));
hints.ai_family = AF_INET;

Loading…
Cancel
Save