From 82d437ee4f997725c01fc3802a34d0b48413b5de Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Mon, 14 Sep 2009 19:31:42 +0000 Subject: [PATCH] Fixed uninitialized variable. --- code/qcommon/net_ip.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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;