mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-16 06:48:25 +00:00
mar feb 18 19:15:15 CET 2003
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@618 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
2
cli.c
2
cli.c
@@ -801,7 +801,7 @@ static char *__ast_cli_generator(char *text, char *word, int state, int lock)
|
||||
matchnum++;
|
||||
if (matchnum > state) {
|
||||
/* Now, what we're supposed to return is the next word... */
|
||||
if (strlen(word)) {
|
||||
if (strlen(word) && x>0) {
|
||||
res = e->cmda[x-1];
|
||||
} else {
|
||||
res = e->cmda[x];
|
||||
|
||||
Reference in New Issue
Block a user