From: Joshua Colp Date: Wed, 1 Aug 2007 18:08:51 +0000 (+0000) Subject: (closes issue #10351) X-Git-Tag: 1.4.10~41 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=97885fed58c7fcc1bae68794d0d790e509f48e0b;p=thirdparty%2Fasterisk.git (closes issue #10351) Reported by: ftarz Some platforms don't like it when you pass NULL to vsnprintf so pass "" instead. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@77871 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/cli.c b/main/cli.c index 57093319e4..1d3a7b94bf 100644 --- a/main/cli.c +++ b/main/cli.c @@ -1743,7 +1743,7 @@ static int help1(int fd, char *match[], int locked) continue; if (match && strncasecmp(matchstr, e->_full_cmd, len)) continue; - ast_cli(fd, "%25.25s %s\n", e->_full_cmd, e->summary); + ast_cli(fd, "%25.25s %s\n", e->_full_cmd, S_OR(e->summary, "")); found++; } AST_LIST_UNLOCK(&helpers);