summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2014-01-28 20:03:12 +0000
committerfrosch <frosch@openttd.org>2014-01-28 20:03:12 +0000
commit9041473814043e37b10e68142eb6b9290cbdd9ec (patch)
tree87fe3b53535b353e0c9db3c0ab9324ce1cb657b8
parentb12bf124c74c4d1e1c2d2eb1c553e12b893dfd30 (diff)
downloadopenttd-9041473814043e37b10e68142eb6b9290cbdd9ec.tar.xz
(svn r26284) -Fix: Comparison of NULL and char 0. (lbalbalba)
-rw-r--r--src/console.cpp2
1 files changed, 1 insertions, 1 deletions
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