diff --git a/code/qcommon/net_ip.c b/code/qcommon/net_ip.c index b3052490..0d438b5d 100644 --- a/code/qcommon/net_ip.c +++ b/code/qcommon/net_ip.c @@ -267,7 +267,9 @@ Sys_StringToSockaddr */ static qboolean Sys_StringToSockaddr(const char *s, struct sockaddr *sadr, int sadr_len, sa_family_t family) { - struct addrinfo hints, *res = NULL, *search; + struct addrinfo hints; + struct addrinfo *res = NULL; + struct addrinfo *search = NULL; struct addrinfo *hintsp; int retval;