]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix crash
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 17 Dec 2008 20:47:14 +0000 (20:47 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 17 Dec 2008 20:47:14 +0000 (20:47 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8597 d7cf8633-e32d-0410-b094-e92efae38249

host_cmd.c

index d700349bdcf014443ec07c5edab7da3d4c654aa7..b5a4047b2bbc17e69a295a97dfc0de4ea636f09a 100644 (file)
@@ -136,7 +136,7 @@ void Host_Status_f (void)
                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
                {