void Host_Status_f (void)
{
client_t *client;
- int seconds, minutes, hours = 0, i, j, k, in, players, ping, packetloss;
+ int seconds = 0, minutes = 0, hours = 0, i, j, k, in, players, ping = 0, packetloss = 0;
void (*print) (const char *fmt, ...);
char ip[22];
if(sv_status_privacy.integer && cmd_source != src_command)
strlcpy(ip, client->netconnection ? "hidden" : "botclient" , 22);
else
- strlcpy(ip, client->netconnection->address ? client->netconnection->address : "botclient", 22);
+ strlcpy(ip, (client->netconnection && client->netconnection->address) ? client->netconnection->address : "botclient", 22);
if (in == 0) // default layout
{