(svn r26284) -Fix: Comparison of NULL and char 0. (lbalbalba)

This commit is contained in:
frosch 2014-01-28 20:03:12 +00:00
parent b12bf124c7
commit 9041473814

View File

@ -475,7 +475,7 @@ void IConsoleCmdExec(const char *cmdstr)
DEBUG(console, 8, "Token %d is: '%s'", i, tokens[i]); 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 /* 2. Determine type of command (cmd or alias) and execute
* First try commands, then aliases. Execute * First try commands, then aliases. Execute
* the found action taking into account its hooking code * the found action taking into account its hooking code