[Asterisk-cvs] asterisk cli.c,1.100,1.101

russell russell
Tue Oct 11 16:25:50 CDT 2005


Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv774

Modified Files:
	cli.c 
Log Message:
fix command listing for top level CLI commands (issue #5416)


Index: cli.c
===================================================================
RCS file: /usr/cvsroot/asterisk/cli.c,v
retrieving revision 1.100
retrieving revision 1.101
diff -u -d -r1.100 -r1.101
--- cli.c	25 Sep 2005 03:13:00 -0000	1.100
+++ cli.c	11 Oct 2005 20:20:40 -0000	1.101
@@ -949,7 +949,7 @@
 			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);
 }
 




More information about the svn-commits mailing list