aboutsummaryrefslogtreecommitdiffstats
path: root/cli.c
diff options
context:
space:
mode:
authorcitats <citats@f38db490-d61c-443f-a65b-d21fe96a405b>2004-05-28 19:23:30 +0000
committercitats <citats@f38db490-d61c-443f-a65b-d21fe96a405b>2004-05-28 19:23:30 +0000
commit54709f46d94f01ee6863faefd6a8f48cbc7cc91d (patch)
treeb31ff08d06240d91883dc7fb4589369fb3115357 /cli.c
parent3e5b4143d79fb31feedde4601b7484f773bd7a18 (diff)
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
Diffstat (limited to 'cli.c')
-rwxr-xr-xcli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli.c b/cli.c
index 9a23cb6ec..6fa4e28fd 100755
--- a/cli.c
+++ b/cli.c
@@ -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);