[iortcw] 406/497: All: Fix check for empty rconpassword in CL_Rcon_f

Simon McVittie smcv at debian.org
Fri Sep 8 10:37:37 UTC 2017


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to annotated tag 1.42d
in repository iortcw.

commit cb1f455fc5d89cc7a9fe01e373508cb785716d26
Author: MAN-AT-ARMS <M4N4T4RMS at gmail.com>
Date:   Sun Oct 4 22:45:00 2015 -0400

    All: Fix check for empty rconpassword in CL_Rcon_f
---
 MP/code/client/cl_main.c | 2 +-
 SP/code/client/cl_main.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/MP/code/client/cl_main.c b/MP/code/client/cl_main.c
index bba48a2..cbf98d5 100644
--- a/MP/code/client/cl_main.c
+++ b/MP/code/client/cl_main.c
@@ -1932,7 +1932,7 @@ void CL_Rcon_f( void ) {
 	char	message[MAX_RCON_MESSAGE];
 	netadr_t	to;
 
-	if ( !rcon_client_password->string ) {
+	if ( !rcon_client_password->string[0] ) {
 		Com_Printf ("You must set 'rconpassword' before\n"
 					"issuing an rcon command.\n");
 		return;
diff --git a/SP/code/client/cl_main.c b/SP/code/client/cl_main.c
index 45f1d23..48f8386 100644
--- a/SP/code/client/cl_main.c
+++ b/SP/code/client/cl_main.c
@@ -1840,7 +1840,7 @@ void CL_Rcon_f( void ) {
 	char	message[MAX_RCON_MESSAGE];
 	netadr_t to;
 
-	if ( !rcon_client_password->string ) {
+	if ( !rcon_client_password->string[0] ) {
 		Com_Printf( "You must set 'rcon_password' before\n"
 					"issuing an rcon command.\n" );
 		return;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/iortcw.git



More information about the Pkg-games-commits mailing list