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

pull/155/head
frosch 11 years ago
parent 21a5571d07
commit 21cde19d98

@ -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

Loading…
Cancel
Save