net_ws: fix possible garabe in return value due to uninitialized value
This commit is contained in:
parent
847be54457
commit
66d1a632a7
1 changed files with 1 additions and 1 deletions
|
@ -413,7 +413,7 @@ int NET_GetHostByName( const char *hostname )
|
||||||
#ifdef HAVE_GETADDRINFO
|
#ifdef HAVE_GETADDRINFO
|
||||||
struct addrinfo *ai = NULL, *cur;
|
struct addrinfo *ai = NULL, *cur;
|
||||||
struct addrinfo hints;
|
struct addrinfo hints;
|
||||||
int ip;
|
int ip = 0;
|
||||||
|
|
||||||
memset( &hints, 0, sizeof( hints ));
|
memset( &hints, 0, sizeof( hints ));
|
||||||
hints.ai_family = AF_INET;
|
hints.ai_family = AF_INET;
|
||||||
|
|
Loading…
Add table
Reference in a new issue