mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 22:31:05 +00:00
thou shalt not use strlen as a boolean value!
This commit is contained in:
parent
ac58ecb10b
commit
694619cd70
1 changed files with 1 additions and 1 deletions
|
@ -386,7 +386,7 @@ CL_Rcon_f (void)
|
|||
if (cls.state >= ca_connected)
|
||||
to = cls.netchan.remote_address;
|
||||
else {
|
||||
if (!strlen (rcon_address->string)) {
|
||||
if (!rcon_address->string[0]) {
|
||||
Con_Printf ("You must either be connected,\n"
|
||||
"or set the 'rcon_address' cvar\n"
|
||||
"to issue rcon commands\n");
|
||||
|
|
Loading…
Reference in a new issue