summaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2007-07-02 20:45:53 +0000
committerRussell Bryant <russell@russellbryant.com>2007-07-02 20:45:53 +0000
commit8d99a2004be3688e770d3cbedfe0e3e8ae0ec643 (patch)
tree9165f5946970f5bcfeef0e1ec048be6f800f88a0 /res
parent4070baa1e6a04a7ae6fe1dfc77c11876e685abc0 (diff)
Fix up the AGI doc dump CLI command and update the AGI commands tex file to not
include a bunch of empty entries. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@72939 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res')
-rw-r--r--res/res_agi.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/res/res_agi.c b/res/res_agi.c
index 13755119f..dad82d454 100644
--- a/res/res_agi.c
+++ b/res/res_agi.c
@@ -1710,6 +1710,9 @@ static char *handle_agi_dump_commanddocs(struct ast_cli_entry *e, int cmd, struc
char fullcmd[80];
command = &commands[i];
+ if (!command->cmda[0])
+ break;
+
ast_join(fullcmd, sizeof(fullcmd), command->cmda);
if (command_name && strcasecmp(fullcmd, command_name))