summaryrefslogtreecommitdiff
path: root/res/res_agi.c
diff options
context:
space:
mode:
Diffstat (limited to 'res/res_agi.c')
-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))