2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2024-12-25 02:05:26 +01:00

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

This commit is contained in:
Alibek Omarov 2018-11-18 17:14:38 +03:00
parent 847be54457
commit 66d1a632a7

View File

@ -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;