From 9041473814043e37b10e68142eb6b9290cbdd9ec Mon Sep 17 00:00:00 2001 From: frosch Date: Tue, 28 Jan 2014 20:03:12 +0000 Subject: (svn r26284) -Fix: Comparison of NULL and char 0. (lbalbalba) --- src/console.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/console.cpp b/src/console.cpp index 8ca3f3a5f..1b5ff2422 100644 --- a/src/console.cpp +++ b/src/console.cpp @@ -475,7 +475,7 @@ void IConsoleCmdExec(const char *cmdstr) DEBUG(console, 8, "Token %d is: '%s'", i, tokens[i]); } - if (tokens[0] == '\0') return; // don't execute empty commands + if (StrEmpty(tokens[0])) return; // don't execute empty commands /* 2. Determine type of command (cmd or alias) and execute * First try commands, then aliases. Execute * the found action taking into account its hooking code -- cgit v1.2.3-70-g09d2