Changeset - r21197:0ac0863ce5fb
[Not reviewed]
master
0 1 0
frosch - 10 years ago 2014-01-28 20:03:12
frosch@openttd.org
(svn r26284) -Fix: Comparison of NULL and char 0. (lbalbalba)
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/console.cpp
Show inline comments
 
@@ -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
0 comments (0 inline, 0 general)