[svn-commits] russell: branch russell/ast_channel_ao2 r183636 - /team/russell/ast_channel_a...

SVN commits to the Digium repositories svn-commits at lists.digium.com
Sat Mar 21 12:19:07 CDT 2009


Author: russell
Date: Sat Mar 21 12:19:03 2009
New Revision: 183636

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=183636
Log:
Fix some errors pointed out by mmichelson

Modified:
    team/russell/ast_channel_ao2/main/cli.c

Modified: team/russell/ast_channel_ao2/main/cli.c
URL: http://svn.digium.com/svn-view/asterisk/team/russell/ast_channel_ao2/main/cli.c?view=diff&rev=183636&r1=183635&r2=183636
==============================================================================
--- team/russell/ast_channel_ao2/main/cli.c (original)
+++ team/russell/ast_channel_ao2/main/cli.c Sat Mar 21 12:19:03 2009
@@ -836,7 +836,7 @@
 		return CLI_FAILURE;
 	}
 
-	for (; c; ast_channel_unref(c), (c = ast_channel_iterator_next(iter))) {
+	for (; (c = ast_channel_iterator_next(iter)); ast_channel_unref(c)) {
 		struct ast_channel *bc;
 		char durbuf[10] = "-";
 
@@ -1264,7 +1264,7 @@
 		}
 		ast_channel_callback(channel_set_debug, NULL, &args, OBJ_NODATA | OBJ_MULTIPLE);
 	} else {
-		if (!(c = ast_channel_get_by_name(a->argv[e->args]))) {
+		if ((c = ast_channel_get_by_name(a->argv[e->args]))) {
 			channel_set_debug(c, NULL, &args, 0);
 			ast_channel_unref(c);
 		} else {




More information about the svn-commits mailing list