From bf915a27cb06d2b2064de9dab26f23e842c13170 Mon Sep 17 00:00:00 2001 From: Sean Bright Date: Sun, 17 Jan 2010 19:47:43 +0000 Subject: [PATCH] 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: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@240718 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/pbx.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main/pbx.c b/main/pbx.c index c4c1302498..10018a2821 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); -- 2.47.2