[asterisk-commits] mmichelson: branch 1.6.0 r161490 - /branches/1.6.0/main/manager.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Dec 5 16:59:44 CST 2008


Author: mmichelson
Date: Fri Dec  5 16:59:43 2008
New Revision: 161490

URL: http://svn.digium.com/view/asterisk?view=rev&rev=161490
Log:
Fix a reversed-logic ast_strlen_zero.

This problem was pointed out on the asterisk-users list
by Jim Dickenson


Modified:
    branches/1.6.0/main/manager.c

Modified: branches/1.6.0/main/manager.c
URL: http://svn.digium.com/view/asterisk/branches/1.6.0/main/manager.c?view=diff&rev=161490&r1=161489&r2=161490
==============================================================================
--- branches/1.6.0/main/manager.c (original)
+++ branches/1.6.0/main/manager.c Fri Dec  5 16:59:43 2008
@@ -2163,7 +2163,7 @@
 	int format = AST_FORMAT_SLINEAR;
 
 	pthread_t th;
-	if (!ast_strlen_zero(name)) {
+	if (ast_strlen_zero(name)) {
 		astman_send_error(s, m, "Channel not specified");
 		return 0;
 	}




More information about the asterisk-commits mailing list