From 694619cd709846d12845d7b301ff8b27d11b10f5 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Wed, 26 Sep 2001 20:57:40 +0000 Subject: [PATCH] thou shalt not use strlen as a boolean value! --- qw/source/cl_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qw/source/cl_main.c b/qw/source/cl_main.c index 92032fb8f..af079705f 100644 --- a/qw/source/cl_main.c +++ b/qw/source/cl_main.c @@ -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");