aboutsummaryrefslogtreecommitdiffstats
path: root/code/qcommon
diff options
context:
space:
mode:
authoricculus <icculus@edf5b092-35ff-0310-97b2-ce42778d08ea>2009-09-14 19:31:42 +0000
committericculus <icculus@edf5b092-35ff-0310-97b2-ce42778d08ea>2009-09-14 19:31:42 +0000
commitec0a038b2f41c9bc7f89c52d8d5427deba313ce1 (patch)
tree2d568541c511a765f1a4a6622eebd9a723cd1764 /code/qcommon
parent9da42b11e03447a6d0b67b054be2e1f92a4dec8f (diff)
downloadioquake3-aero-ec0a038b2f41c9bc7f89c52d8d5427deba313ce1.tar.gz
ioquake3-aero-ec0a038b2f41c9bc7f89c52d8d5427deba313ce1.zip
Fixed uninitialized variable.
git-svn-id: svn://svn.icculus.org/quake3/trunk@1591 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/qcommon')
-rw-r--r--code/qcommon/net_ip.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/code/qcommon/net_ip.c b/code/qcommon/net_ip.c
index b305249..0d438b5 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;