From 8d99a2004be3688e770d3cbedfe0e3e8ae0ec643 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Mon, 2 Jul 2007 20:45:53 +0000 Subject: 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 --- res/res_agi.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'res') 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)) -- cgit v1.2.3