aboutsummaryrefslogtreecommitdiffstats
path: root/cli.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-10-11 20:20:40 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-10-11 20:20:40 +0000
commitb8c095ac66c7e0e5162c765689b951e4f6ca6b50 (patch)
tree3b0630b07ea006482bedd4d34238c1d743fc8407 /cli.c
parentdbd3b478a5700f8c78294bffc4d3471f9c272024 (diff)
fix command listing for top level CLI commands (issue #5416)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6740 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'cli.c')
-rwxr-xr-xcli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli.c b/cli.c
index 7ec76ba89..b32ca13ca 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);
}