Simplify and clean up find_dll_command()
The only external change here is that it now always sets *cnt to 0 when it returns NULL Previously, it could set it to -1 in some cases, in particular when dll_commands is NULL. This led to a bug where /HELP would show the wrong number of matching commands, because it added the return value of find_dll_command() to the number of matching internal commands. Also fixes a set-but-unused-variable warning.
This commit is contained in:
Reference in New Issue
Block a user