dect
/
asterisk
Archived
13
0
Fork 0

Hopefully last ast_strlen_zero fix in cli.c

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3105 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
citats 2004-05-28 19:23:30 +00:00
parent 3e5b4143d7
commit 54709f46d9
1 changed files with 1 additions and 1 deletions

2
cli.c
View File

@ -997,7 +997,7 @@ static char *__ast_cli_generator(char *text, char *word, int state, int lock)
if (e->generator && !strncasecmp(matchstr, fullcmd, strlen(fullcmd))) {
/* We have a command in its entirity within us -- theoretically only one
command can have this occur */
fullcmd = e->generator(text, word, (strlen(word) ? (x - 1) : (x)), state);
fullcmd = e->generator(text, word, (!ast_strlen_zero(word) ? (x - 1) : (x)), state);
if (lock)
ast_mutex_unlock(&clilock);
free(dup);