Skip to content
Snippets Groups Projects
Commit a5373b7e authored by Russell Bryant's avatar Russell Bryant
Browse files

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
parent 080cc2d4
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment