mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-21 18:01:15 +00:00
don't do hostname lookup on an empty string
This commit is contained in:
parent
b62f3c98d9
commit
37a5938b87
1 changed files with 4 additions and 1 deletions
|
@ -1199,7 +1199,10 @@ cl_usleep_f (cvar_t *var)
|
|||
static void
|
||||
cl_cmd_pkt_adr_f (cvar_t *var)
|
||||
{
|
||||
NET_StringToAdr (var->string, &cl_cmd_packet_address);
|
||||
if (var->string[0])
|
||||
NET_StringToAdr (var->string, &cl_cmd_packet_address);
|
||||
else
|
||||
memset (&cl_cmd_packet_address, 0, sizeof (cl_cmd_packet_address));
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue