[Asterisk-cvs] asterisk cli.c,1.39,1.40
citats at lists.digium.com
citats at lists.digium.com
Fri May 28 15:08:33 CDT 2004
Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/home/citats/cvs/asterisk
Modified Files:
cli.c
Log Message:
Hopefully last ast_strlen_zero fix in cli.c
Index: cli.c
===================================================================
RCS file: /usr/cvsroot/asterisk/cli.c,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -d -r1.39 -r1.40
--- cli.c 20 May 2004 16:30:09 -0000 1.39
+++ cli.c 28 May 2004 19:23:30 -0000 1.40
@@ -997,7 +997,7 @@
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);
More information about the svn-commits
mailing list