Fix tab-completing past the end of the completions list
Jeffrey Pfau jeffrey@endrift.com
Fri, 10 Oct 2014 02:56:13 -0700
1 files changed,
3 insertions(+),
0 deletions(-)
jump to
M
src/debugger/cli-debugger.c
→
src/debugger/cli-debugger.c
@@ -597,6 +597,9 @@ break;
} } } + if (!name) { + return CC_ERROR; + } if (_debuggerCommands[cmd + 1].name && strncasecmp(_debuggerCommands[cmd + 1].name, li->buffer, len - 1) == 0) { return CC_ERROR; }