[asterisk-commits] kmoore: branch kmoore/stasis-bridging_events-rework r390037 - /team/kmoore/st...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed May 29 13:49:20 CDT 2013


Author: kmoore
Date: Wed May 29 13:49:17 2013
New Revision: 390037

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=390037
Log:
A little clean up

Modified:
    team/kmoore/stasis-bridging_events-rework/res/stasis_http/resource_bridges.c

Modified: team/kmoore/stasis-bridging_events-rework/res/stasis_http/resource_bridges.c
URL: http://svnview.digium.com/svn/asterisk/team/kmoore/stasis-bridging_events-rework/res/stasis_http/resource_bridges.c?view=diff&rev=390037&r1=390036&r2=390037
==============================================================================
--- team/kmoore/stasis-bridging_events-rework/res/stasis_http/resource_bridges.c (original)
+++ team/kmoore/stasis-bridging_events-rework/res/stasis_http/resource_bridges.c Wed May 29 13:49:17 2013
@@ -220,9 +220,7 @@
 	while ((obj = ao2_iterator_next(&i))) {
 		RAII_VAR(struct stasis_message *, msg, obj, ao2_cleanup);
 		struct ast_bridge_snapshot *snapshot = stasis_message_data(msg);
-		int r = ast_json_array_append(
-			json, ast_bridge_snapshot_to_json(snapshot));
-		if (r != 0) {
+		if (ast_json_array_append(json, ast_bridge_snapshot_to_json(snapshot))) {
 			stasis_http_response_alloc_failed(response);
 			return;
 		}




More information about the asterisk-commits mailing list