From a5373b7e78962dec2d6b877a9534be38343d6d62 Mon Sep 17 00:00:00 2001 From: Russell Bryant <russell@russellbryant.com> Date: Tue, 11 Oct 2005 20:20:40 +0000 Subject: [PATCH] fix command listing for top level CLI commands (issue #5416) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6740 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- cli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli.c b/cli.c index 7ec76ba897..b32ca13ca1 100755 --- a/cli.c +++ b/cli.c @@ -949,7 +949,7 @@ static void join(char *dest, size_t destsize, char *w[], int tws) strncat(dest, " ", destsize - strlen(dest) - 1); strncat(dest, w[x], destsize - strlen(dest) - 1); } - if (tws) + if (tws && !ast_strlen_zero(dest)) strncat(dest, " ", destsize - strlen(dest) - 1); } -- GitLab