From e806885fc3cff2a6355db73684e8f3d7058f5d3c Mon Sep 17 00:00:00 2001 From: "M. Kristall" Date: Sat, 3 Oct 2009 12:38:45 +0000 Subject: * Partially revert rev 1182 (null deref) --- src/game/g_admin.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/game') diff --git a/src/game/g_admin.c b/src/game/g_admin.c index 43ca0400..851ec077 100644 --- a/src/game/g_admin.c +++ b/src/game/g_admin.c @@ -681,7 +681,8 @@ static void admin_log( gentity_t *admin, char *cmd, int skiparg ) tens, sec, ( admin ) ? admin->s.clientNum : -1, - admin->client->pers.guid, + ( admin ) ? admin->client->pers.guid + : "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", ( admin ) ? admin->client->pers.netname : "console", flags, cmd, @@ -697,7 +698,8 @@ static void admin_log( gentity_t *admin, char *cmd, int skiparg ) tens, sec, ( admin ) ? admin->s.clientNum : -1, - admin->client->pers.guid, + ( admin ) ? admin->client->pers.guid + : "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", ( admin ) ? admin->client->pers.netname : "console", flags, cmd, -- cgit