aboutsummaryrefslogtreecommitdiffstats
path: root/main/pbx.c
diff options
context:
space:
mode:
authorseanbright <seanbright@f38db490-d61c-443f-a65b-d21fe96a405b>2010-01-17 19:45:48 +0000
committerseanbright <seanbright@f38db490-d61c-443f-a65b-d21fe96a405b>2010-01-17 19:45:48 +0000
commit5e267160df5dda16ec56799415180d9c5316ac18 (patch)
tree12d513096f95ba54bae034b829857a84491d4487 /main/pbx.c
parent1e59f02ddc1ddf696cde5182523d62927422aba2 (diff)
Avoid a crash on Solaris when running 'core show functions.'
(closes issue #16309) Reported by: asgaroth git-svn-id: http://svn.digium.com/svn/asterisk/trunk@240717 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/pbx.c')
-rw-r--r--main/pbx.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/main/pbx.c b/main/pbx.c
index 520e3365b..d0ca80d46 100644
--- a/main/pbx.c
+++ b/main/pbx.c
@@ -3185,7 +3185,10 @@ static char *handle_show_functions(struct ast_cli_entry *e, int cmd, struct ast_
AST_RWLIST_TRAVERSE(&acf_root, acf, acflist) {
if (!like || strstr(acf->name, a->argv[4])) {
count_acf++;
- ast_cli(a->fd, "%-20.20s %-35.35s %s\n", acf->name, acf->syntax, acf->synopsis);
+ ast_cli(a->fd, "%-20.20s %-35.35s %s\n",
+ S_OR(acf->name, ""),
+ S_OR(acf->syntax, ""),
+ S_OR(acf->synopsis, ""));
}
}
AST_RWLIST_UNLOCK(&acf_root);