aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorseanbright <seanbright@f38db490-d61c-443f-a65b-d21fe96a405b>2010-01-17 19:47:43 +0000
committerseanbright <seanbright@f38db490-d61c-443f-a65b-d21fe96a405b>2010-01-17 19:47:43 +0000
commit9cdfb22a0840c42d1676d022dd0cde0678320888 (patch)
tree235c400a316b6bd9cbf66b209936f9976aa596a5
parentae7fba3bdddb7d7e8e32dc0b2e0d9b5531a83501 (diff)
Merged revisions 240717 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ........ r240717 | seanbright | 2010-01-17 14:45:48 -0500 (Sun, 17 Jan 2010) | 5 lines 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/branches/1.6.0@240718 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--main/pbx.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/main/pbx.c b/main/pbx.c
index c4c130249..10018a282 100644
--- a/main/pbx.c
+++ b/main/pbx.c
@@ -2607,7 +2607,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);